---
title: "date"
source: "https://github.com/remix-run/remix/blob/8905f3943706e1f53696ab83e70a84873cabfc90/packages/data-schema/src/lib/coerce.ts#L89"
---

# date

## Summary

Coerce input into a `Date`.

Accepts:
- valid `Date` instances
- date strings supported by `new Date(value)`

## Signature

```ts
function date(): Schema<unknown, Date>

```

## Returns

A schema that produces a `Date`