I am using jQuery datepicker for my project. I have this code:
$('#date-show').datepicker({ dateFormat: 'dd-mm-yy' });
My gripe is that although the datepicker shows, the date format is still 'mm-dd-yyyy') and I had also tried
$('#date-show').datepicker("option","dateFormat","dd-mm-yy");
It still displays as mm-dd-yyyy. Am I missing out something?