Function isValidDate

  • Checks if a date is valid

    Parameters

    • date: Date

    Returns boolean