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
Table 2. Returns
Type Description
GlideDate The date in the system time zone.

Scoped equivalent

To use the getDate() method in a scoped application, use the corresponding scoped method: Scoped GlideDateTime - getDate().

var gdt = new GlideDateTime("2011-08-31 08:00:00");

Output: 2011-08-31