Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno_class_validator/src/index.ts>isISO8601

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

Checks if the string is a valid ISO 8601 date. If given value is not a string, then it returns false. Use the option strict = true for additional checks for a valid date, e.g. invalidates dates like 2019-02-29.

Parameters

value: unknown
optional
options: ValidatorJS.IsISO8601Options

Returns

boolean