How to allow appointments within the business hours excluding lunch time and evening break?

How to allow appointments within the business hours excluding lunch time and evening break?

Assume your business hours are from 9:00 AM to 7:00 PM where lunch hour is from 1:00 PM to 2:00 PM and evening break is from 5:00 PM to 5:30 PM.
So you want the time to be enabled from 9:00 AM to 1:00 PM , 2:00 PM to 5:00 PM, and 5:30 PM to 7:00 PM
  1. Drag and drop a Date-Time field on your form builder.
  2. In the Properties of the field, to configure the time ranges, under Time, choose the Time Range option and add the Time Ranges as shown.

    Time Range