Scoped GlideDateTime - GlideDateTime(String value)

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
value String A UTC date and time using the internal format yyyy-MM-dd HH:mm:ss.
var gdt = new GlideDateTime("2011-01-01 12:00:00");

Output: