java - JodaTime String yyyy-mm-ddThh:mmss.Z to DateTime -


Hi, I am using Joda to convert my string dates to a datetime object.

I currently have the following string:

  2014-02-16T00: 17: 20.000Z  

I have it in a datetime object How to change

I have tried:

  DateTime Former Formats = DateTime Format.Partin ("yyyy-MM-dd'HH: mm: ssZZZ"); Datetime DT = Format. Pursuit time ("2014-02-16T00: 17: 20.000Z");  

But I'm getting the following error:

  java.lang.IllegalArgumentException: Invalid format: "2014-02-16T00: 17: 20.000Z" Any help is greatly appreciated   

p> future Simple solution for visitors:

  string date = "2014-02-16T00: 17: 20.000Z"; Date time date time = new date time (date);  

Comments

Popular posts from this blog

eclipse plugin - Run java code error: Workspace is closed -

ios - How do I use CFArrayRef in Swift? -

scala - Play Framework - how to bind form to a session field -