GlideDateTime - GlideDateTime(GlideDateTime gDT)

Instantiates a new GlideDateTime object set to the time of a specified GlideDateTime object in GMT format.

Table 1. Parameters
Name Type Description
gDT GlideDateTime Object used to set the time of the new object.

var start = new GlideDateTime("2011-01-01 12:00:00");
var end = new GlideDateTime(start);
gs.print(end);

Output:

2011-01-01 12:00:00