GlideDateTime - GlideDateTime(String dateTime)

Instantiates a new GlideDateTime object from a date and time value in the UTC time zone specified with the format yyyy-MM-dd HH:mm:ss.

Table 1. Parameters
Name Type Description
dateTime String A UTC date and time using the format yyyy-MM-dd HH:mm:ss.

var gdt = new GlideDateTime("2011-01-01 12:00:00");