I have a working version of jQuery datepicker which is defaulted to today's date and display in below format,
I needed to format the display date like below. How can I do it?
Here is the JS code
viewDate = function () {
$('#Date').datepicker({
changeMonth: true,
changeYear: true,
showButtonPanel: true,
dateFormat: "yy-mm-dd",
minDate:"-5y",
maxDate: 'today',
onSelect: function(selected,evnt) {
doSomething(selected);
}
}).datepicker("setDate", "0");
},
Thanks for your help!
dateFormat: "dd-M-yy"
and add propertymonthNames: ['January', 'February'...]
dateFormat
?-
should be spaces.