# month

Industry: Core

```ts
const month: RegExp = /^(0[1-9]|1[0-2])$/;
```

RegExp matching an ISO 8601 month: `01`–`12`.

## Examples

```ts
import { month } from "@northguild/gmt";
```

```ts
month.test("01") // true
month.test("12") // true
month.test("13") // false (out of range)
month.test("1") // false (not zero-padded)
```

## Source

[regex/date.ts](https://github.com/northguild/gmt/blob/main/packages/gmt/src/regex/date.ts)
