Skip to main content
Module

x/zod/index.ts>ZodDate

TypeScript-first schema validation with static type inference
Extremely Popular
Go to Latest
class ZodDate
extends ZodType<Date, ZodDateDef>
import { ZodDate } from "https://deno.land/x/zod@v3.17.10/index.ts";

Properties

readonly
maxDate
readonly
minDate

Methods

_addCheck(check: ZodDateCheck)
_parse(input: ParseInput): ParseReturnType<this["_output"]>
max(maxDate: Date, message?: errorUtil.ErrMessage)
min(minDate: Date, message?: errorUtil.ErrMessage)

Static Properties

create: (params?: RawCreateParams) => ZodDate