getMilliseconds (JavaScript)

Gets the millisecond in local time.

Defined in

Date (Standard - JavaScript)

Syntax

getMilliseconds() : int
Return value Description
int The milliseconds 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.getHour().toString() + " hours";
sessionScope.minute = date.getMinute().toString() + " minutes";
sessionScope.second = date.getSecond().toString() + " seconds";
sessionScope.milli = date.getMilliseconds().toString() + " ms"