Methods
validate
(
-
value -
options -
model -
attribute
Parameters:
-
valueAny -
optionsObject-
allowBlankBooleanIf true, skips validation if the value is empty
-
beforeStringThe specified date must be before this date
-
onOrBeforeStringThe specified date must be on or before this date
-
afterStringThe specified date must be after this date
-
onOrAfterStringThe specified date must be on or after this date
-
precisionStringLimit the comparison check to a specific granularity. Possible Options: [
year,month,week,day,hour,minute,second]. -
formatStringInput value date format
-
errorFormatStringError output date format. Defaults to
MMM Do, YYYY
-
-
modelObject -
attributeString