Scoped GlideElement - setDateNumericValue(Number milliseconds)

Sets the value of a date/time element to the specified number of milliseconds since January 1, 1970 00:00:00 GMT.

When called, setDateNumericValue() automatically creates the necessary GlideDateTime/GlideDate/GlideDuration object, and then sets the element to the specified value.

Note: Before calling this method, the element must already exist (by querying an existing record or by initializing (gr.initialize()) a new record).
Table 1. Parameters
Name Type Description
milliseconds Number Number of milliseconds since 1/1/1970
Table 2. Returns
Type Description
void

var gr = new GlideRecord("incident");
gr.initialize();
gr.opened_at.setDateNumericValue(10000);