GlideDateTime - getNumericValue()

Returns the number of milliseconds since January 1, 1970, 00:00:00 GMT.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
Number Number of milliseconds since January 1, 1970, 00:00:00 GMT

var gdt = new GlideDateTime("2011-08-31 08:00:00");
gs.print(gdt.getNumericValue());

Output: 1314777600000