Skip to content

getMonth

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

Return the current month using the system timeZone.

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

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

import { getMonth } from "@northguild/gmt/plain/get";
getMonth() // "02"
output 

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