Function isValidDate

  • Checks if a given date is valid.

    Parameters

    • date: Date

      The date to check.

    Returns boolean

    True if the date is valid, false otherwise.