Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/valibot/src/schemas/date/date.ts>date

The modular and type safe schema library for validating structural data 🤖
Latest
function date
import { date } from "https://deno.land/x/valibot@v1.0.0-beta.5/src/schemas/date/date.ts";

Creates a date schema.

Returns

DateSchema<undefined>

A date schema.

Creates a date schema.

Type Parameters

TMessage extends ErrorMessage<DateIssue> | undefined

Parameters

message: TMessage

The error message.

Returns

A date schema.