JQuery UI Datepicker date format issue with initial value

Posted by Mithun on Stack Overflow See other posts from Stack Overflow or by Mithun
Published on 2010-03-11T18:15:26Z Indexed on 2010/03/11 18:19 UTC
Read the original article Hit count: 437

Filed under:
|
|
|

I need to set the initial date for the date picker to 03/20/2010 in mm-dd-yyyyy format. I have done this

<input id='datepicker' type='text' value='20/03/2010' />

But my problem is on clicking the field date picker populates with today's date as highlighed and no date selected, and up on selecting date value

But when i change my input field like one below

<input id='datepicker' type='text' value='03/20/2010' />

Date picker is populating March 20 as selected date and current date highlighted. But all in 'mm-dd-yyyy' format!

I want show all dates in 'dd-mm-yyyy' format. How can I solve this?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about date