getToday
Playground
call
result
Signature
Section titled “Signature”getToday(): stringimport { 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.
Returns
Section titled “Returns”ISO 8601 PlainDate string or “” on error
Examples
Section titled “Examples”getToday() // "2024-03-15" (current date)