Changes between Initial Version and Version 2 of Ticket #9207
- Timestamp:
- Apr 4, 2013, 1:10:11 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #9207
- Property Owner set to ovrijburg
-
Property
Status
changed from
new
topending
-
Ticket #9207 – Description
initial v2 1 1 When adding this 2 2 3 {{{ 3 4 $( "#startdate" ).datepicker(); 4 5 $( "#startdate" ).datepicker( "option", "dateFormat", "yy-mm-dd" ); 5 6 $( "#startdate" ).datepicker.parseDate( "yy-mm-dd", $row_MailingList['startdate'] ); 7 }}} 6 8 7 9 to the function it will show a blank field but once the date is selected it returns the correct date format YYYY-MM-DD, however when I change the order to 8 10 11 {{{ 9 12 $( "#startdate" ).datepicker(); 10 13 $( "#startdate" ).datepicker.parseDate( "yy-mm-dd", $row_MailingList['startdate'] ); 11 14 $( "#startdate" ).datepicker( "option", "dateFormat", "yy-mm-dd" ); 15 }}} 12 16 13 17 it shows the date in the field but once you select a new date it returns the date in the format "MM/DD/YYYY" which is not what I want. I need the date to appear in the field and when a new date is selected the field should be updated with the date in the correct format YYYY-MM-DD