Opened 9 years ago

Closed 9 years ago

#10709 closed bug (notabug)

DatePicker does not correctly use 2-digit year for dateFormat

Reported by: sp3 Owned by:
Priority: minor Milestone: none
Component: ui.datepicker Version: 1.11.2
Keywords: Cc:
Blocked by: Blocking:


You can see this on the current jQuery UI web site. Click a date on the popup and you will get a date with a 4-digit year, even though the default dateFormat is as follows -- dateFormat: "mm/dd/yy". It should show a 2-digit year.

There is an additional related bug that if you call the public Datepicker function 'parseDate' with a 2-digit year format and a date with a 2-digit year, it will throw an exception saying that it cannot recognize the year.

This was working fine in 1.10.

Change History (1)

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

Resolution: notabug
Status: newclosed

yy is a four digit year. Please see the documentation for more information.

Note: See TracTickets for help on using tickets.