# convertZonedToUtc

Industry: Core

## Signature

```ts
convertZonedToUtc(value: string): string
```

Convert an ISO 8601 zoned datetime string to a UTC Instant string (ISO).

- Uses Temporal.ZonedDateTime.toInstant to convert.
- Returns "" for invalid input.

## Parameters

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

## Returns

UTC Instant ISO string or "" when invalid

## Examples

```ts
import { convertZonedToUtc } from "@northguild/gmt/zoned/convert";

convertZonedToUtc("2024-02-29T12:34:56.789+00:00[UTC]") // "2024-02-29T12:34:56.789Z"
```

## Source

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