Scoped GlideDateTime - getYearLocalTime()

Gets the year stored by the GlideDateTime object, expressed in the current user's time zone.

Table 1. Parameters
Name Type Description
none
Table 2. Returns
Type Description
Number Four-digit year value in the user's time zone.
var gdt = new GlideDateTime("2011-11-02 12:00:00");
gs.info(gdt.getYearLocalTime());

Output: