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
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");

Output: 4