Javascript Reference
Categories: Date

javascript Date toGMTString( )

@March 15, 2008, 1:22 a.m.
toGMTString( )Firefox/Netscape/NN 2 IE 3 ECMA 1  


Returns a string version of the GMT value of a Date object instance in a standardized format. This method does not alter the original Date object. For use in newer browsers, the toUTCString( ) method is recommended in favor of toGMTString( ).



Returned Value

String in the following format: dayAbbrev, dd mmm yyyy hh:mm:ss GMT. For example:

Mon 05 Aug 2002 02:33:22 GMT

Powered by Linode.