Reputation: 3624
I am trying to format the date returned from the date-picker and it is not working, it keeps returning the default mm/dd/yyyy
.
I'm using the following code:
$('#<%=TextBox1.ClientID %>').datepicker({ dateFormat: 'dd-mm-yy' });
Upvotes: 0
Views: 102
Reputation: 7336
to get your date formatted use:
var date = $('#datepicker').datepicker({ dateFormat: 'dd-mm-yy' }).val();
Upvotes: 1