GlideDateTime - getMonthUTC()

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

Table 1. Parameters
Name Type Description
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

Output: 12