Microsoft® JScript™ toUTCString Method | Language Reference Version 3

See Also Applies To

##### Description

> Converts the date to a string in 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);
> >     }

© 1998 Microsoft Corporation. All rights reserved. Terms of Use.