Skip to content

getDay

  • The core functions, which every industry uses.
getDay(): string

Return the current day of month using the system timeZone.

  • Uses Temporal.Now.zonedDateTimeISO() to get current day in system timezone.
  • Returns zero-padded string (e.g., “29”).
  • Returns "" when system timezone is unavailable.

current day string (zero-padded) or "" on invalid

import { getDay } from "@northguild/gmt/plain/get";
getDay() // "29"
output 

plain/get/getDay.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.