Get the day of the week that a FullDate falls on in its own timezone. To get the day of the week in a different timezone, convert the date first with toNewTimezone.
toNewTimezone
import {getDayOfWeek} from 'date-vir';getDayOfWeek({ year: 2026, month: 10, day: 2, hour: 23, minute: 30, second: 0, millisecond: 0, timezone: 'America/Denver',}); // outputs `DayOfWeekName.Friday` (even though this is a Saturday in UTC) Copy
import {getDayOfWeek} from 'date-vir';getDayOfWeek({ year: 2026, month: 10, day: 2, hour: 23, minute: 30, second: 0, millisecond: 0, timezone: 'America/Denver',}); // outputs `DayOfWeekName.Friday` (even though this is a Saturday in UTC)
Get the day of the week that a FullDate falls on in its own timezone. To get the day of the week in a different timezone, convert the date first with
toNewTimezone.