Scoped GlideDateTime - getValue()

Gets the date and time value stored by the GlideDateTime object in the internal format, yyyy-MM-dd HH:mm:ss, and the system time zone, UTC by default.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type
String - The date and time value in the internal format and system time zone.
var gdt = new GlideDateTime("2014-08-31 08:00:00");
gs.info(gdt.getValue());

Output: