title: Scala group by and find min and max from List[String]
body: <p>I've following list of values in Scala and want to group by these values in such a way that I can get min and max timestamp of each value for each particular day :-</p>
  
  <pre><code>val data = List( (123 , 2018-04-30 10:15:30),
  (123 , 2018-04-30 11:15:30),
  (123 , 2018-04-30 12:22:30),
  (223 , 2018-04-22 10:15:30),
  (223 , 2018-04-22 13:15:30))
  </code></pre>
  
  <p>I want output as </p>
  
  <pre><code>List((123, 2018-04-30, 2018-04-30 10:15:30 , 2018-04-30 12:22:30),
  (223, 2018-04-22, 2018-04-22 10:15:30 , 2018-04-30 13:15:30))
  </code></pre>
  
  <p>Hope this clarifies my query</p>
  
  <p>Thanks,</p>