DateTimeUtils - msToGlideDateTime(Number milliseconds)

Convert milliseconds to a GlideDateTime object

Table 1. Parameters
Name Type Description
milliseconds Number The number of milliseconds
Table 2. Returns
Type Description
GlideDateTime A GlideDateTime object

//example script to call the method from a client
Replace MILLISECONDSVALUE with your variable
var ga = new GlideAjax('DateTimeUtils');
ga.addParam('sysparm_name','msToGlideDateTime');
ga.addParam('sysparm_value', MILLISECONDSVALUE);
ga.getXMLWait();
var newGDT = ga.getAnswer();