I have a string from a json response:
start: "2013-09-18T20:40:00+0000",
end: "2013-09-18T21:39:00+0000",
How do i convert this string to a java DateTime Object?
i have tried using the following:
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSXXX");
start = sdf.parse("2013-09-18T20:40:00+0000");
but with this i can only create a Date Object. But the time binded in the String is kinda essential.
Any Help is greatly appreciated!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…