Search and Top Navigation
#5989 closed bug (worksforme)
Opened August 25, 2010 11:12AM UTC
Closed October 26, 2010 02:02PM UTC
Last modified October 11, 2012 09:15PM UTC
regional (l18n) obliterates dateFormat
| Reported by: | Mytskine | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | ui.datepicker | Version: | 1.8.4 |
| Keywords: | Cc: | ||
| Blocked by: | Blocking: |
Description
When a localization is set, the option "dateFormat" is ignored. So only english speakers can choose their date format. I'd like to have, for instance, a French calendar with an ISO date field.
The following works for me:
<script type="text/javascript" src="js/jquery-1.4.2.js"></script> <script type="text/javascript" src="js/jquery-ui-1.8.4.custom.js"></script> <script type="text/javascript" src="js/i18n/jquery.ui.datepicker-fr.js"></script> <script type="text/javascript"> $(function() { $('#startDate').datepicker({dateFormat: 'yy-mm-dd'}); }); </script>