# parseMonthFromDate

Industry: Core

## Signature

```ts
parseMonthFromDate(value: string): string
```

Return the month (1-12) for a given ISO 8601 date string.

- Returns zero-padded string for month.
- Returns "" for invalid input.

## Parameters

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

## Returns

Month (01-12) or "" on invalid input

## Examples

```ts
import { parseMonthFromDate } from "@northguild/gmt/plain/parse";

parseMonthFromDate("2024-03-15") // "03"
```

## Source

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