Getting current date with javascript with HTTP Date format -


i'm looking way current date , time in http date format example "tue, 15 nov 1994 08:12:31 gmt". javascript. tried with:

new date().tostring() 

but gives me different format like: "tue aug 20 2013 00:19:28 gmt+0200". need invert month day , put coma between day of week , day of month. how can format?

the http date format mention rfc-1123 timestamp. toutcstring function on date object supposed return compatible value.

you can validate this sample fiddle.


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -