Options for date validation.

interface IsDateOptions {
    delimiters?: string[];
    format?: string;
    strictMode?: boolean;
}

Properties

delimiters?: string[]

Allowed date separators. Defaults to ['/', '-'].

format?: string

Expected date format. Defaults to YYYY/MM/DD.

strictMode?: boolean

If true, rejects input that deviates from the specified format. Defaults to false.