GlideDateTime - setNumericValue(Number milliseconds)

Sets the date and time to the number of milliseconds since January 1, 1970 00:00:00 GMT.

Table 1. Parameters
Name Type Description
milliseconds Number The number of milliseconds
Table 2. Returns
Type Description
void

Scoped equivalent

To use the setNumericValue() method in a scoped application, use the corresponding scoped method: setNumericValue().

var gdt = new GlideDateTime();
gdt.setNumericValue(1314777600000);
gs.print(gdt.getValue());

Output: 2011-08-31 08:00:00