GlideDateTime - setDayOfMonthUTC(Number day)

Sets the day of the month to a specified value in the UTC time zone.

Table 1. Parameters
Name Type Description
day Number The day of month to change to, from 1 to 31. If this value is greater than the maximum number of days in the month, the value is set to the last day of the month.
Table 2. Returns
Type Description
void

Scoped equivalent

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

var gdt = new GlideDateTime();
gdt.setDayOfMonthUTC(9);
gs.print(gdt.getDayOfMonthUTC());

Output: 9