I would have thought this was:
.datepicker({ dateFormat: 'dd-mmm-yyyy' });
for month, I get some number that I don't understnad where they are coming from?
According to the documentation, a single M is "Month name short" and "yy" is "Four Digit Year."
dd-M-yy
2.1m questions
2.1m answers
60 comments
57.0k users