How to format date, Jquery UI Datepicker
by Dush on Nov.14, 2008, under JQuery
Yes, if you are reading this artical, probably you also must have looking for same thing just like I did few mins ago, well let’s just not keep you searching no more.. so here it is
[sourcecode language='javascript']$(‘#txtDate’).datepicker({
dateFormat: ‘dd/mm/yy’
});[/sourcecode]
on this example I have used European data format (dd/mm/yy) , you can customize your formatting using following parameters. (from JQuery UI documentation)
- d – day of month (no leading zero)
- dd – day of month (two digit)
- D – day name short
- DD – day name long
- m – month of year (no leading zero)
- mm – month of year (two digit)
- M – month name short
- MM – month name long
- y – year (two digit)
- yy – year (four digit)
- ‘…’ – literal text
- ” – single quote

April 16th, 2009 on 1:54 am
Excellent site, It was pleasant to me.
May 12th, 2009 on 2:46 pm
thanks !! very helpful post!