Show:

Methods

validate
(
  • value
  • options
  • model
  • attribute
)

Defined in addon/date.js:13

Parameters:

  • value Any
  • options Object
    • allowBlank Boolean

      If true, skips validation if the value is empty

    • before String

      The specified date must be before this date

    • onOrBefore String

      The specified date must be on or before this date

    • after String

      The specified date must be after this date

    • onOrAfter String

      The specified date must be on or after this date

    • precision String

      Limit the comparison check to a specific granularity. Possible Options: [year, month, week, day, hour, minute, second].

    • format String

      Input value date format

    • errorFormat String

      Error output date format. Defaults to MMM Do, YYYY

  • model Object
  • attribute String