Home | Javascript validator | JavaScript Editor JavaScript EditorGet Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.
Microsoft® JScript®
toGMTString Method
 Language Reference 
Version 1 

See Also                  Applies To


Description
Returns a date converted to a string using Greenwich Mean Time(GMT).
Syntax
objDate.toGMTString()
Remarks
The toGMTString method is obsolete, and is provided for backwards compatibility only. It is recommended that you use the toUTCString method instead.

The toGMTString method returns a String object that contains the date formatted using GMT convention. The format of the return value is as follows: "05 Jan 1996 00:00:00 GMT."

The following example illustrates the use of the toGMTString method:

function toGMTStrDemo()
{  
  var d, s;
  d = new Date();
  s = "Current setting is ";
  s += d.toGMTString(); 
  return(s);
}

Home | Javascript validator | JavaScript Editor JavaScript EditorGet Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.