i have a long string of date .
looks like that : Mon Jun 18 2012 19:00:00 .
my question is simple.
i want it to be shows like this : dd/mm/yyyy HH:mm (HH implament for 24 hours )
im using jQuery and all its UI.
please dont tell me to add this Date.js class. it can be done by simple jQuery for sure 🙂
Thank You !
i have a long string of date . looks like that : Mon Jun
Share
Since you have jQueryUI loaded there is a full date formatting utilty built in but it doesn’t handle time. Beyond that you need to work with native javscript Date object yourself or use a data library like date.js to simplify parsing.
Example using jQUeryUI: http://jsfiddle.net/qqLMd/
http://docs.jquery.com/UI/Datepicker/formatDate
Your assuredness that this was a simple jQUery process was misconceived. jQuery doesn not have any date handling in core API
MDN DATE Docs