title: how to deserialize DateTime in Lift
body: <p>I am having trouble deserializing a org.joda.time.DateTime field from JSON into a case class.  </p>
  
  <p>The JSON:<br>
  <code>val ajson=parse("""  { "creationDate": "2013-01-02T10:48:41.000-05:00" }""")</code>  </p>
  
  <p>I also set these serialization options:<br>
  <code>implicit val formats = Serialization.formats(NoTypeHints) ++ net.liftweb.json.ext.JodaTimeSerializers.all</code>  </p>
  
  <p>And the deserialization:<br>
  <code>val val1=ajson.extract[Post]</code>  </p>
  
  <p>where Post is:<br>
  <code>case class Post(</code>creationDate<code>: DateTime){ ... }</code>  </p>
  
  <p>The exception I get is:  </p>
  
  <pre><code> net.liftweb.json.MappingException: No usable value for creationDate
      Invalid date format 2013-01-02T10:48:41.000-05:00
  </code></pre>
  
  <p>How can I deserialize that date string into a DateTime object?  </p>
  
  <p>EDIT:<br>
  This works: <code>val date3= new DateTime("2013-01-05T06:24:53.000-05:00")</code>
  which uses the same date string from the JSON as in the deserialization. What's happening here?</p>