vtils

Home > validator > yup > date

yup.date() function

Signature:

export declare function date<T extends Date = Date>(payload?: (schema: DateSchema<T>) => DateSchema<T>): DateSchema<T>;

Parameters

Parameter Type Description
payload (schema: DateSchema<T>) => DateSchema<T> (Optional)

Returns:

DateSchema<T>