# chopTime

Industry: Core

## Signature

```ts
chopTime(value: string): string
```

Return the PlainDate portion extracted from an ISO PlainDateTime string.

- Extracts date components from a PlainDateTime.
- Returns "" for invalid input.

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| `value` | `string` | ISO PlainDateTime string |

## Returns

ISO PlainDate string or "" on invalid input

## Examples

```ts
import { chopTime } from "@northguild/gmt/plain/chop";

chopTime("2024-02-29T12:34:56") // "2024-02-29"
```

## Source

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