Skip to content

getToday

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

Return the current PlainDate as an ISO string in the system timeZone.

  • Uses Temporal.Now.zonedDateTimeISO() to get current date in system timezone.
  • Returns "" when system timezone is unavailable.

ISO 8601 PlainDate string or "" on error

import { getToday } from "@northguild/gmt/plain/get";
getToday() // "2024-03-15" (current date)
output 

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