Web | This Site

JavaScript Basics
JavaScript Objects
JavaScript Advanced
JS Useful References
JS Useful Resources
Selected Reading
© 2011 TutorialsPoint.COM

| Home |  | References |  | Discussion Forums |  | About TP

# Javascript Date getUTCMilliseconds() Method

## Description:

Javascript date getUTCMilliseconds() method returns the milliseconds in the specified date according to universal time. The value returned by getUTCMilliseconds is an integer between 0 and 999.

## Syntax:

    Date.getUTCMilliseconds()

Here is the detail of parameters:

- NA

## Return Value:

Returns the milliseconds in the specified date according to universal time.

## Example:

The following example prints the milliseconds portion of the current time to the variable hrs.

    <html>
    <head>
    <title>JavaScript getUTCMilliseconds Method</title>
    </head>
    <body>
    <script type="text/javascript">
       var dt = new Date();
       document.write("getUTCMilliseconds() : " + dt.getUTCMilliseconds() );
    </script>
    </body>
    </html>

This will produce following result for Indian time zone:

    getUTCMilliseconds() : 453

To understand it in better way you can Try it yourself.

Advertisement

Online Image Processing

Indian Baby Names