# minDate

> Value (Date or anything `new Date()` parses) must be ≥ `min`. Empty values pass.

Source: https://ngwr.dev/reference/validators/min-date  
Kind: Validator

## Live demo

Minimum is 2026-01-01 — earlier dates fail.

## Usage

```angular-ts
import { FormControl } from '@angular/forms';
import { WrValidators } from 'ngwr/validators';

const start = new FormControl('', [
  WrValidators.minDate('2026-01-01'),
]);

start.setValue('2025-12-31');
start.errors; // { minDate: { min: Date(2026-01-01) } }
```

## Why ngwr provides this

Angular's `Validators.min` is numeric-only. This compares dates — `Date` instances or anything `new Date()` parses — and pairs naturally with [wr-date-picker](https://ngwr.dev/reference/components/date-picker).

## API

| Name | Description | Type | Default |
| --- | --- | --- | --- |
| `signature` | Factory — call with a `Date` or any value `new Date(v)` accepts (ISO string, epoch ms). | `(min: Date \| string \| number) => ValidatorFn` | `—` |
| `error key` | On failure: `{ minDate: { min: Date } }`. Empty value passes. | `{ minDate: { min } }` | `—` |

## See also

- [wr-date-picker](https://ngwr.dev/reference/components/date-picker) — Calendar-popup input - pair it with minDate for range floors.
- [wr-calendar](https://ngwr.dev/reference/components/calendar) — Inline month view with its own [min] guard.
- [maxDate](https://ngwr.dev/reference/validators/max-date) — The matching upper-bound rule.
