GlideDateTime - getDaysInMonthUTC()

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

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
Number The number of days in the month stored by the GlideDateTime object, expressed in the UTC time zone.

Scoped equivalent

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

var gdt = new GlideDateTime(); //December
gs.print(gdt.getDaysInMonthUTC());

Output: 31