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

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

See Also                  Applies To


Description
Returns a date converted to a string using Universal Coordinated Time (UTC).
Syntax
objDate.toUTCString()
Remarks
The toUTCString method returns a String object that contains the date formatted using UTC convention in a convenient, easily readable form.

The following example illustrates the use of the toUTCString method:

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

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

1st JavaScript Editor.