GlideDateTime - setDayOfMonth(Number day)

Sets the day of the month to a specified value.

Use setDayOfMonthLocalTime(day) and setDayOfMonthUTC(day) instead of this method.

Table 1. Parameters
Name Type Description
day Number Day of the month, from 1 to 31.
Table 2. Returns
Type Description
void

var gdt = new GlideDateTime();
gdt.setDayOfMonth(9);
gs.print(gdt.getDayOfMonth());

Output: 9