Changes between Initial Version and Version 2 of Ticket #9207


Ignore:
Timestamp:
Apr 4, 2013, 1:10:11 PM (10 years ago)
Author:
Scott González
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9207

    • Property Owner set to ovrijburg
    • Property Status changed from new to pending
  • Ticket #9207 – Description

    initial v2  
    11When adding this
    22
     3{{{
    34$( "#startdate" ).datepicker();
    45$( "#startdate" ).datepicker( "option", "dateFormat", "yy-mm-dd" );
    56$( "#startdate" ).datepicker.parseDate( "yy-mm-dd", $row_MailingList['startdate'] );
     7}}}
    68
    79to 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
    810
     11{{{
    912$( "#startdate" ).datepicker();
    1013$( "#startdate" ).datepicker.parseDate( "yy-mm-dd", $row_MailingList['startdate'] );
    1114$( "#startdate" ).datepicker( "option", "dateFormat", "yy-mm-dd" );
     15}}}
    1216
    1317it 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