Microsoft® JScript™ getUTCMilliseconds Method | Language Reference Version 3

See Also Applies To

##### Description

> Retrieves the number of milliseconds past the second from the milliseconds value stored in a Date object according to Universal Coordinated Time (UTC).

##### Syntax

> objDate.getUTCMilliseconds()

##### Remarks

> To get the number of milliseconds in local time, use the getMilliseconds method.

> The millisecond value returned can range from 0-999.

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

> >     function UTCTimeDemo()
> >     {
> >       var d, s = "Current Universal Coordinated Time (UTC) is: ";
> >       var c = ":";
> >       d = new Date();
> >       s += d.getUTCHours() + c;
> >       s += d.getUTCMinutes() + c;
> >       s += d.getUTCSeconds() + c;
> >       s += d.getUTCMilliseconds();
> >       return(s);
> >     }

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