私は次の日付があります:私はジョダのDateTimeにこれを変換することができますどのようUTCをDateTimeに変換するにはどうすればよいですか?
2011-05-24T11:40:41Z
を?
EDIT:
DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
Date date = df.parse(aMessage.getString("updated_at"));
org.joda.time.DateTime dt = new DateTime(date);
エラー:
The method parse(String) is undefined for the type DateFormat
Type mismatch: cannot convert from SimpleDateFormat to DateFormat
あなたは私の今回の例を示していることはできますか? –
はい、Joda DateTime –
私は答えをどのように更新しましたか? –