The reason your output is not the same thing is because you are not using a formatter to print. The formatter is not "paired" with DateTime, you must use it explicitly.
Try the following:
DateTimeFormatter formatter = DateTimeFormat.forPattern("yyyy-MM-dd HH:mm:ss.SSS");
DateTime dt = formatter.parseDateTime("2014-04-24 18:22:01.867");
System.out.println("dt : " + fomatter.print(dt));
source
share