GlideDateTime - getDayOfWeekLocalTime()

Gets the day of the week stored by the GlideDateTime object, expressed in the user's time zone.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
Number The day of the week value - Monday = 1, ... Sunday = 7

Scoped equivalent

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

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

Output: 4