Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

z.ZodDate

import { z } from "https://esm.sh/zod@3.25.76/index.d.cts"; 

const { ZodDate } = z;
class ZodDate extends ZodType<Date, ZodDateDef, Date> {
get minDate(): Date | null;
get maxDate(): Date | null;
 
_addCheck(check: ZodDateCheck): ZodDate;
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
max(maxDate: Date, message?: errorUtil.ErrMessage): ZodDate;
min(minDate: Date, message?: errorUtil.ErrMessage): ZodDate;
 
static create: (params?: RawCreateParams & {
coerce?: boolean;
}
) => ZodDate
;
}

§Extends

§
ZodType<Date, ZodDateDef, Date>
[src]

§Properties

§
minDate: Date | null readonly
[src]
§
maxDate: Date | null readonly
[src]

§Methods

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

§Static Properties

§
create: (params?: RawCreateParams & {
coerce?: boolean;
}
) => ZodDate
[src]