Skip to content

month

  • The core functions, which every industry uses.
const month: RegExp = /^(0[1-9]|1[0-2])$/;

RegExp matching an ISO 8601 month: 01–12.

import { month } from "@northguild/gmt";
month.test("01") // true
month.test("12") // true
month.test("13") // false (out of range)
month.test("1") // false (not zero-padded)

regex/date.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.