Opened 8 years ago

Closed 8 years ago

#3859 closed bug (fixed)

DatePicker can't pick years before 1999

Reported by: Trustmaster Owned by:
Priority: major Milestone: 1.7
Component: ui.datepicker Version: 1.6rc5
Keywords: Cc:
Blocked by: Blocking:


Hi, I'd like to use Datepicker for user birth dates, but it can't select dates before 1999. I use code like this:

		changeMonth: true,
		changeYear: true,
		dateFormat: 'dd-mm-yy',
		minDate: '-100Y',
		maxDate: '0',

Tried other minDate variants too, it didn't help. Tested on 1.5.3 and 1.6.rc5

Change History (1)

comment:1 Changed 8 years ago by kbwood

Resolution: fixed
Status: newclosed

Fixed in r1670. The yearRange setting controls which years are shown in the year drop-down, with minDate and maxDate having the final say. yearRange can be either a relative value ('-10:+10') or an absolute value ('1990:2010'). The relative value was calculated from today's date (hence the limit of 1999). This has been changed back to relative to the currently selected date, meaning that the available years always surround that date.

Note: See TracTickets for help on using tickets.