Scoped GlideDateTime - setYearUTC(Number year)

Sets the year stored by the GlideDateTime object to the specified value using the UTC time zone.

Table 1. Parameters
Name Type Description
year Number The year to change to.
Table 2. Returns
Type Description
void
var gdt = new GlideDateTime();
gdt.setYearUTC(2013);
gs.info(gdt.getYearUTC());

Output: 2013