Scoped GlideDateTime - getDaysInMonthLocalTime()

Gets the number of days in the month stored by the GlideDateTime object, expressed in the current user's time zone.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
Number The number of days in the current month in the user's time zone.
var gdt = new GlideDateTime("2011-12-02 12:00:00"); //December
gs.info(gdt.getDaysInMonthLocalTime());

Output: