Returns a validation function to validate that a date is less than or equal to the max date, if given.
Optional
The maximum allowed date value.
A custom error message to display if the value is invalid.
The level of precision used to validate.
Returns a validation function to validate that a date is less than or equal to the max date, if given.