• Coerces a loose value into a valid Date or returns null.

    Parameters

    • input: DateInput

      Value that may represent a date (Date, string, or millisecond timestamp)

    Returns Date

    Coerced Date instance when valid, otherwise null