# calendarZonedDateTime

Industry: Core

```ts
const calendarZonedDateTime: RegExp = /^(\d{4}|\+\d{6}|-(?!0{6})\d{6})-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])T(\d{2}:\d{2}(?::\d{2}(?:[.,]\d{1,9})?)?)((?:[+-]\d{2}:\d{2}(?::\d{2}(?:[.,]\d{1,9})?)?)|Z)?\[(!?[^[\]=!]+)\]\[(!)?u-ca=([A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)\]$/;
```

RegExp matching a calendar-annotated ZonedDateTime string in the RFC 9557 form Temporal writes and reads — the zoned sibling of `calendarDate` (regex/calendar-date.ts):

## Examples

```ts
import { calendarZonedDateTime } from "@northguild/gmt";
```

```ts
calendarZonedDateTime.test("2024-02-24T14:30:00+02:00[Asia/Jerusalem][u-ca=hebrew]") // true
calendarZonedDateTime.test("2024-02-24T14:30:00+02:00[u-ca=hebrew][Asia/Jerusalem]") // false (calendar before zone)
calendarZonedDateTime.test("2024-03-15T14:30:00Z[UTC]") // false (no calendar annotation)
```

## Source

[regex/calendar-zoned-date-time.ts](https://github.com/northguild/gmt/blob/main/packages/gmt/src/regex/calendar-zoned-date-time.ts)
