Opened 12 years ago

Closed 12 years ago

#6800 closed bug (wontfix)

When the date is formatted without the year, the year value gets corrupted.

Reported by: ablerman Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.datepicker Version: 1.8.5
Keywords: Cc:
Blocked by: Blocking:


When the date is formatted using 'M d' the year gets corrupted. When you 'getDate' from the widget, the date is of the current year, even if the date selected was from a prior year.

Try it using the this fiddle ( ) Select Dec 3, 2010 and then click the "Show Date" button. For the first one, you get the correct value. For the second one, it sets the date to the current year.

Change History (1)

comment:1 Changed 12 years ago by Scott González

Resolution: wontfix
Status: newclosed

I'm not really sure whether this should be closed as wontfix or invalid. If you don't want to use the year as part of the date, then we can't remember the full date. You can use the altField option or manually update the text field, but there won't be a direct way to handle users manually typing a value. If you want to discuss this, please use the forums.

Note: See TracTickets for help on using tickets.