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: |
Description
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.
Note: See
TracTickets for help on using
tickets.
yy is a four digit year. Please see the documentation for more information.