title: How to compare current time between two different times?
body: <p>I have a two strings values that represent opening hours of a shop like :</p>
  
  <pre><code>val startHour = "08:00"
  val endHour = "19:00"
  </code></pre>
  
  <p>I want to check if shop is open by comparing current time between these two times. I tried like below :</p>
  
  <pre><code>val hourFormat = SimpleDateFormat("HH:mm:ss")
  val startTime = hourFormat.parse(startHour)
  val endTime = hourFormat.parse(endHour )
  </code></pre>
  
  <p>but I get parse exception.</p>
  
  <p>Any one has an idea ?</p>