Skip to content

getToday

Playground

call
result 
getToday(): string
import { getToday } from "@northguild/gmt/plain/get";

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

getToday() // "2024-03-15" (current date)

plain/get/getToday.ts