Click to See Complete Forum and Search --> : Get Date Format as "Fri Jul 6 16:01:56 EDT 2007"


shahaninad
10-06-2008, 06:11 AM
Hi All,

Can any one help me in formatting Date? I want to send "CURRENT" date to client in following format:
"Fri Jul 6 16:01:56 EDT 2007"

I tried few things but did not get exact format.

Thanks,
Ninad Shaha

starheartbeam
10-06-2008, 02:23 PM
Off the top of my head I would think you would do something like...


var now = new Date();

dateFormat(now, "ddd, mmm d, HH:MM:ss, Z , yyyy");