GlideDateTime - getDayOfWeekUTC()

Gets the day of the week 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 day of the week value - Monday = 1, ... Sunday = 7

Scoped equivalent

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

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

Output: 4