Skip to content

getDayOfWeek

  • The core functions, which every industry uses.
getDayOfWeek(): number | null

Return the current ISO day of the week as a number in the system timeZone.

  • Uses Temporal.Now.zonedDateTimeISO() to get current day in system timezone.
  • Returns ISO day of week: 1 (Monday) to 7 (Sunday).
  • Returns null when system timezone is unavailable.

current ISO day of week number (1-7) or null on invalid

import { getDayOfWeek } from "@northguild/gmt/plain/get";
getDayOfWeek() // 4
output 

plain/get/getDayOfWeek.ts

Accessibility
© 2026 NorthGuild · Licences

Code examples: MIT-0. Packages: MIT. Third-party data and components: their own licences, credited where they appear. Everything else: © 2026 NorthGuild, all rights reserved.