Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/deno_class_validator/src/index.ts>maxDate

Decorator-based property validation for classes.
Latest
function maxDate
import { maxDate } from "https://deno.land/x/deno_class_validator@v1.0.0/src/index.ts";

Checks if the value is a date that's before the specified date.

Parameters

date: unknown
maxDate: Date

Returns

boolean