Microsoft® JScript™ getUTCDate Method | Language Reference Version 3

See Also Applies To

##### Description

> Returns the date of the month stored in a Date object according to Universal Coordinated Time (UTC).

##### Syntax

> objDate.getUTCDate()

##### Remarks

> To get the date according to local time, use the getDate method.

> The return value is an integer between 1 and 31 that represents the date stored in the Date object.

> The following example illustrates the use of the getUTCDate method:

> >     function UTCDateDemo()
> >     {
> >       var d, s = "Today's UTC date is: ";
> >       d = new Date();
> >       s += (d.getUTCMonth() + 1) + "/";
> >       s += d.getUTCDate() + "/";
> >       s += d.getUTCFullYear();
> >       return(s);
> >     }

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