Jquery datepicker format date not working
try out this
$(".datepicker").datepicker({dateFormat: 'dd-mm-yy'});
small letter will works
Depending on the version of datepicker being used, the correct format may be:
$('#datepicker').datepicker({ format: 'yyyy-mm-dd' });
Try just format option not dateFormat
$('#datepicker').datepicker({
format: 'dd-mm-yyyy'
});
Thats the default, meaning it does not recognise your option.
try:
dateFormat: 'dd-mm-yy'
(small letters)