# convertZonedToPlainDateTime

Industry: Core

## Signature

```ts
convertZonedToPlainDateTime(value: string): string
```

Convert a zoned ISO 8601 datetime string to a plain datetime string.

- Extracts the local date-time components without timezone info.
- Validation is performed on the input.
- **The offset is dropped, and with it which occurrence of a repeated wall time was meant.** In a fall-back overlap the same plain date-time names two instants; converting back with `convertPlainDateTimeToZoned` picks the earlier one by default. Keep the zoned string, or pass `{ disambiguation: "later" }` when converting back, to recover the second occurrence.

## Parameters

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

## Returns

plain datetime string or "" on invalid input

## Examples

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

convertZonedToPlainDateTime("2024-02-29T14:30:45.123-03:00[America/Sao_Paulo]") // "2024-02-29T14:30:45.123"
```

## Source

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