Title: Increase date-picker year range
Last modified: November 3, 2017

---

# Increase date-picker year range

 *  Resolved [pog21](https://wordpress.org/support/users/pog21/)
 * (@pog21)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/increase-date-picker-year-range/)
 * Hi,
 * I’m adding a date-picker field being used for Date of Birth, which needs to span
   a wide range of years (1900-2016)
 * Currently, the ‘year’ drop-down shows about 10 years when you click on it. To
   go further back you have to choose the earliest year, then re-open the drop-down
   and choose the earliest year again. This has to be repeated until the required
   year is reached.
 * How can I change this to show either a much larger number of years or to make
   it scroll?
 * Thanks for any help.
 * Oliver

Viewing 1 replies (of 1 total)

 *  Thread Starter [pog21](https://wordpress.org/support/users/pog21/)
 * (@pog21)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/increase-date-picker-year-range/#post-9647988)
 * FIXED
 * For anyone else facing this issue, here’s what I did. Go to:
 * `assets > customerJs > app.js`
 * Find the function initDatePicker() and add the following to the list of object
   properties:
 * `yearRange: '1900:2016'`
 * This makes the ‘year’ drop-down of the date-picker scroll between those dates,
   which is much better usability.
 * I think this is what the max/min dates in the settings should be doing. Especially
   as I had to hack the plugin files to achieve this.
 * Cheers,
    Oliver
    -  This reply was modified 8 years, 8 months ago by [pog21](https://wordpress.org/support/users/pog21/).

Viewing 1 replies (of 1 total)

The topic ‘Increase date-picker year range’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/flexible-woocommerce-checkout-field-
   editor.svg)
 * [Flexible Woocommerce Checkout Field Editor](https://wordpress.org/plugins/flexible-woocommerce-checkout-field-editor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/flexible-woocommerce-checkout-field-editor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/flexible-woocommerce-checkout-field-editor/)
 * [Active Topics](https://wordpress.org/support/plugin/flexible-woocommerce-checkout-field-editor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/flexible-woocommerce-checkout-field-editor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/flexible-woocommerce-checkout-field-editor/reviews/)

## Tags

 * [datepicker](https://wordpress.org/support/topic-tag/datepicker/)

 * 1 reply
 * 1 participant
 * Last reply from: [pog21](https://wordpress.org/support/users/pog21/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/increase-date-picker-year-range/#post-9647988)
 * Status: resolved