Skip to main content

Search and Top Navigation

#5774 open feature ()

Opened June 27, 2010 10:37PM UTC

Last modified July 17, 2014 01:49PM UTC

Datepicker: allow descending years in drop-down

Reported by: kbwood Owned by:
Priority: minor Milestone: none
Component: ui.datepicker Version: 1.8.2
Keywords: template Cc:
Blocked by: Blocking:
Description

Forums: http://forum.jquery.com/topic/datepicker-should-understand-decrescent-year-listing

For instance, my datepicker is now configured this way (bigger: lower):

yearRange: (new Date().getFullYear()) + ':-110'

What shows TOP: 2010 - 2009 - 2008 ... and 1900 at the bottom of the list.

Could it be possible in next versions ?

a good variable for it would be YearOrdering: 'asc' or 'desc'

or even an intelligence to work when the range informed is like yearRange: 2010:1900

Attachments (0)
Change History (7)

Changed January 05, 2012 02:30PM UTC by mbjorke comment:1

Month dropdown should perhaps be done the same way, but year feels more important. It's not so nice that the only way now to achieve this is to do a hack. It makes upgrading jquery-ui a pain since the hack would be easily be forgotten.

Changed June 26, 2012 01:22AM UTC by scottgonzalez comment:2

type: enhancementfeature

Changed October 11, 2012 09:04PM UTC by scottgonzalez comment:3

milestone: TBD1.11.0

Changed October 19, 2012 10:01PM UTC by mikesherov comment:4

status: newopen

Changed September 26, 2013 03:01PM UTC by Spinal comment:5

It's been 3 years since this was proposed, and judging from this forum thread this seems like an easy thing to implement. Can someone confirm or deny this is going to make it into jQuery UI 1.11 ? This would be much appreciated!

Changed September 26, 2013 03:02PM UTC by scottgonzalez comment:6

milestone: 1.11.0none

I can confirm that no API changes for datepicker will make it into 1.11. Datepicker is in the process of being completely rewritten.

Changed July 17, 2014 01:49PM UTC by scottgonzalez comment:7

keywords: yeartemplate