Skip to content

Conversation

aparod
Copy link
Contributor

@aparod aparod commented Feb 17, 2011

The minDate/maxDate properties are assumed to be in the same date
format as the dateFormat of the datepicker. If the datepicker is
later updated to use a new dateFormat, minDate/maxDate remain
in the old format and are not used properly by the datepicker.

With this change, when a new dateFormat is specified, minDate/maxDate
are reformatted with the new date format. This allows the datepicker
to parse those dates correctly and properly restrict the range of the
datepicker.

The minDate/maxDate properties are assumed to be in the same date
format as the dateFormat of the datepicker.  If the datepicker is
later updated to use a new dateFormat, minDate/maxDate remain
in the old format and are not used properly by the datepicker.

With this change, when a new dateFormat is specified, minDate/maxDate
are reformatted with the new date format.  This allows the datepicker
to parse those dates correctly and properly restrict the range of the
datepicker.
@scottgonzalez
Copy link
Member

Thanks landed in 74b7c3f.

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants