Scoped GlideDateTime - getLocalDate()

Gets the date stored by the GlideDateTime object, expressed in the standard format, yyyy-MM-dd, and the current user's time zone.

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

Output: