GlideDateTime - getMonthLocalTime()

Gets the month 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 The numerical value of the month, Jan=1, Dec=12.

Scoped equivalent

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

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

Output: 12