# mapDaysInMonth

Industry: Core

## Signature

```ts
mapDaysInMonth(month: string): string[]
```

Return an array of ISO PlainDate strings for every day in the given year-month.

- Generates array of dates for the specified month.
- Validates input matches the year-month format exactly.
- Returns [] for invalid input.

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| `month` | `string` | ISO PlainYearMonth string (YYYY-MM) |

## Returns

array of ISO PlainDate strings for each day in the month

## Examples

```ts
import { mapDaysInMonth } from "@northguild/gmt/plain/map";

mapDaysInMonth("2024-02") // ["2024-02-01", "2024-02-02", ..., "2024-02-29"]
```

## Source

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