title: c# - How do I loop through a time range
body: <p>I would like to define the start time as 6pm and end time as 9pm. This time range (something looked like below) used for everyday's schedule. How do I implement in for loop? Appreciate for any reply.</p>
  
  <pre><code>6:00 PM 
  6:30 PM 
  7:00 PM 
  7:30 PM 
  8:00 PM 
  8:30 PM 
  9:00 PM
  </code></pre>