date-vir - v9.4.1
    Preparing search index...

    Function getDayOfWeek

    • 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.

      Parameters

      Returns DayOfWeekName

      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)