GlideDateTime - getDayOfMonthUTC()

Gets the day of the month stored by the GlideDateTime object, expressed in the UTC time zone.

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

Scoped equivalent

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

var gdt = new GlideDateTime("2011-12-02 12:00:00");

Output: 2