DateTimeSchemaExtensions extension
Extensions for CodecSchema<String, DateTime> to add date range
validation.
- on
Methods
-
max(
DateTime maxDate) → CodecSchema< String, DateTime> -
Available on CodecSchema<
Constrains the date to be on or beforeString, DateTime> , provided by the DateTimeSchemaExtensions extensionmaxDate(inclusive). -
min(
DateTime minDate) → CodecSchema< String, DateTime> -
Available on CodecSchema<
Constrains the date to be on or afterString, DateTime> , provided by the DateTimeSchemaExtensions extensionminDate(inclusive).