Opened 7 years ago

Closed 7 years ago

#9207 closed bug (invalid)

Issue with DatePicker

Reported by: ovrijburg Owned by: ovrijburg
Priority: minor Milestone: none
Component: ui.datepicker Version: 1.10.2
Keywords: Cc:
Blocked by: Blocking:

Description (last modified by Scott González)

When adding this

$( "#startdate" ).datepicker();
$( "#startdate" ).datepicker( "option", "dateFormat", "yy-mm-dd" );
$( "#startdate" ).datepicker.parseDate( "yy-mm-dd", $row_MailingList['startdate'] );

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

$( "#startdate" ).datepicker();
$( "#startdate" ).datepicker.parseDate( "yy-mm-dd", $row_MailingList['startdate'] );
$( "#startdate" ).datepicker( "option", "dateFormat", "yy-mm-dd" );

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

Change History (4)

comment:1 Changed 7 years ago by tj.vantoll

Owner: set to ovrijburg
Status: newpending

Hi ovrijburg,

Thanks for taking the time to contribute to the jQuery UI project. In order to assess this ticket we need a reduced test case that this issue. You can use this as a starting point: http://jsfiddle.net/tj_vantoll/tRdpr/.

comment:2 Changed 7 years ago by Scott González

Description: modified (diff)

comment:3 Changed 7 years ago by Scott González

Component: ui.coreui.datepicker

comment:4 Changed 7 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Note: See TracTickets for help on using tickets.