Home > @websublime/schema > DateSchemaType > range
DateSchemaType.range() method
Test if date is between date ranges
Signature:
range(min: string | Date, max: string | Date, errorMessage?: string): this;
Parameters
Parameter | Type | Description |
---|---|---|
min | string | Date | Minimum date |
max | string | Date | Maximum date |
errorMessage | string | Error message |
Returns:
this