setUTCMilliseconds (JavaScript)

Sets the millisecond in UTC.

Defined in

Date (Standard - JavaScript)

Syntax

setUTCMilliseconds(ms:int) : long
Parameters Description
ms The millisecond in local time where the milliseconds in a second are 0 through 999
Return value Description
long The new time in numeric format.

Examples

This computed label sets the current time with the millisecond at 0.
var date = new Date();
date.setUTCMilliseconds(0);
date.toUTCString()