Checks if the user is over the minimum age at the start of the trip.

  • Parameters

    • tripStartDate: Date
    • dateOfBirth: string | Date

      string (e.g. "MM/dd/yyyy") or Date object

    Returns boolean

    true if the user is over the minimum age, false otherwise.