How can I format this date?
<li>Sat Mar 03 2012 14:16:05 GMT+0530 (India Standard Time)</li>
I used new date() function to get date in this li. I want date like this 03/03/2012
How can I format this date?
<li>Sat Mar 03 2012 14:16:05 GMT+0530 (India Standard Time)</li>
I used new date() function to get date in this li. I want date like this 03/03/2012
All you need to do is tell the date function to format the date to the kind of output you want.
(Assuming you are using date function of JavaScript, which you did mention above.)
http://www.webdevelopersnotes.com/tips/html/10_ways_to_format_time_and_date_using_javascript.php3
OR
http://blog.stevenlevithan.com/archives/date-time-format
OR
http://archive.plugins.jquery.com/project/jquery-dateFormat