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
Post a Comment