getUTCMilliseconds (JavaScript)

Gets the millisecond in UTC.

Defined in

Date (Standard - JavaScript)

Syntax

getUTCMilliseconds() : int
Return value Description
int The millisecond 0 through 999.

Examples

This button sets global variables to the current hour, minute, second, and millisecond. The global variables might be displayed, for example, as the values for computed fields.
var date = new Date();
sessionScope.hour = date.getUTCHours().toString() + " hours";
sessionScope.minute = date.getUTCMinutes().toString() + " minutes";
sessionScope.second = date.getUTCSeconds().toString() + " seconds";
sessionScope.milli = date.getUTCMilliseconds().toString() + " ms"