Home > @websublime/schema > DateSchemaType > max
DateSchemaType.max() method
Test if date is equal or less than maximum date
Signature:
max(max: string | Date, errorMessage?: string): this;
Parameters
Parameter | Type | Description |
---|---|---|
max | string | Date | Maximum date |
errorMessage | string | Error message |
Returns:
this