getUTCMilliseconds()
Date
instance method
JS Home <<
JS Reference <<
Date <<
getUTCMilliseconds()
Description
Returns the UTC milliseconds (0-999) within the current second for the specified date.
Syntax
Signature | Description |
---|---|
aDate.getUTCMilliseconds() | Returns the UTC milliseconds (0-999) within the current second for the specified date. |
Parameters
None.
Examples
The code below shows an example of the getUTCMilliseconds()
method of Date
.
// Create a Date instance for the current date and time.
var todaysDate = new Date();
alert(todaysDate);
// Get UTC millseconds of the second.
alert(todaysDate.getUTCMilliseconds() + ' = UTC Milliseconds of the second');
Related Tutorials
JavaScript Intermediate Tutorials - Lesson 2 - Dates and Times