GlideDateTime - setMonthLocalTime(Number month)

Sets the month stored by the GlideDateTime object to a specified value using the current user's time zone.

Table 1. Parameters
Name Type Description
month Number The month to change to.
Table 2. Returns
Type Description
void

Scoped equivalent

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

var gdt = new GlideDateTime();
gdt.setMonthLocalTime(1);
gs.print(gdt.getMonthLocalTime());

Output: 1