Scoped GlideDateTime - getDate()

Gets the date stored by the GlideDateTime object, expressed in the standard format, yyyy-MM-dd, and the system time zone, UTC by default.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
GlideDate The date in the system time zone.
var gdt = new GlideDateTime("2011-08-31 08:00:00");
gs.info(gdt.getDate());

Output: