GlideDateTime - getDayOfMonth()

Gets the current day of the month in the UTC time zone.

Use getDayOfMonthLocalTime() and getDayOfMonthUTC() instead of this method.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
Number The day of the month in the UTC time zone, from 1 to 31.

var gdt = new GlideDateTime("2011-12-02 12:00:00");
gs.print(gdt.getDayOfMonth());

Output: 2