# chopZonedDateTime

Industry: Core

## Signature

```ts
chopZonedDateTime(value: string): string
```

Extracts the IANA timeZone identifier from an ISO 8601 zoned datetime string.

- Extracts timezone id from a ZonedDateTime.
- Returns "" for invalid input.

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| `value` | `string` | ISO 8601 zoned datetime string |

## Returns

IANA timeZone id (e.g. Europe/Paris) or "" for invalid

## Examples

```ts
import { chopZonedDateTime } from "@northguild/gmt/zoned/chop";

chopZonedDateTime("2024-02-29T12:30:45+01:00[Europe/Paris]") // "Europe/Paris"
```

## Source

[zoned/chop/chopZonedDateTime.ts](https://github.com/northguild/gmt/blob/main/packages/gmt/src/zoned/chop/chopZonedDateTime.ts)
