title: How to convert String to date time in Scala?
body: <p>I am new to Scala and I've learned it for the last few days. I have a doubt about Scala's date converting from string.</p>
  
  <p>How to convert String to Date and time using Scala ?</p>
  
  <p>Does it work the same way as Java?</p>
  
  <p>When I do it that way, I get a compiler error and I can't convert that into Scala because I am new to Scala. And I know that it's not good to convert Java to Scala... </p>
  
  <p>Please share your answer.</p>