chopZonedTimezone
Signature
Section titled “Signature”chopZonedTimezone(value: string): stringReturns the local plain datetime (date + time) extracted from a zoned datetime string.
- Extracts both date and time components from a ZonedDateTime.
- Returns "" for invalid input.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value | string | ISO 8601 zoned datetime string |
Returns
Section titled “Returns”Local plain datetime string or "" for invalid
Examples
Section titled “Examples”import { chopZonedTimezone } from "@northguild/gmt/zoned/chop";
chopZonedTimezone("2024-02-29T14:30:45.123+05:30[Asia/Kolkata]") // "2024-02-29T14:30:45.123"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.