getZonedToday
Signature
Section titled “Signature”getZonedToday(ianaTimezone: string): stringReturn today’s date in the given IANA timeZone as an ISO date string.
- Uses Temporal.Now.zonedDateTimeISO() to get current date in timezone.
- Returns "" for invalid timezone.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
ianaTimezone | string | IANA name or UTC offset: a time zone identifier (+05:30, +0530, -08) or a stored offset (±HH:MM[:SS], what getTimeZoneOffset returns) |
Returns
Section titled “Returns”ISO date string (YYYY-MM-DD) or "" when invalid
Examples
Section titled “Examples”import { getZonedToday } from "@northguild/gmt/zoned/get";
getZonedToday("Asia/Kolkata") // "2024-02-29"Source
Section titled “Source”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.