title: DateTime formatting confusion in Scala
body: <p>So I have the following data in a .csv file (this is only the first few rows) - </p>
  
  <pre><code>time                  temp
  2015-08-14 00:00:05   30.00
  2015-08-14 00:00:15   31.25
  2015-08-14 00:00:25   33.45
  2015-08-14 00:00:35   34.76
  2015-08-14 00:00:45   36.43
  </code></pre>
  
  <p>I then create the following case class  - </p>
  
  <pre><code>scala&gt; case class Temps(time: org.joda.time.format.DateTimeFormat, temp: String)
  </code></pre>
  
  <p>I then aim to create an RDD by creating the parse function </p>
  
  <pre><code>scala&gt; def parse(line: String) = {
         val data = line.split(',')
         val time = data(0).????
         val temp= data(1).toString
         Temps(time, temp)
         }
  </code></pre>
  
  <p>So my question is, what do I put where the ??? is above? I'm not entirely sure how to format the DateTime in this scenario.</p>