GlideDateTime - getMonthUTC()

Gets the month stored by the GlideDateTime object, expressed in the UTC time zone.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
Number The numerical value of the month, Jan=1, Dec=12.

Scoped equivalent

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

var gdt = new GlideDateTime(); //December
gs.print(gdt.getMonthUTC());

Output: 12