Skip to main content

Search and Top Navigation

#3620 closed bug (wontfix)

Opened November 24, 2008 12:54PM UTC

Closed December 07, 2008 11:45PM UTC

When yearRange rolls over, the resulting dates dont

Reported by: deebo Owned by:
Priority: minor Milestone: 1.7
Component: ui.datepicker Version: 1.6rc2
Keywords: Cc:
Blocked by: Blocking:
Description

When using something like

yearRange: '-5:+0'

in december during year 2008, and you press 'next month' the calendar rolls over to 2003.

But if you select the date 1st of january 2003, the input field will contain '1st of january 2009' due to the rollover.

Attachments (0)
Change History (2)

Changed November 30, 2008 01:38PM UTC by jzaefferer comment:1

milestone: TBD1.6

Changed December 07, 2008 11:45PM UTC by kbwood comment:2

resolution: → wontfix
status: newclosed

The yearRange setting only controls how many years show in the year drop-down. It does not restrict the selectable dates. You should use the minDate and maxDate settings for that, and the range of years in the drop-down will change accordingly. Note that the yearRange can also be set to absolute values, e.g. '2003:2008'.