私は文字列を持っています"1/28/2013 3:26:51 PM"
SimpleDateFormat formatter = new SimpleDateFormat("M/dd/yyyy h:mm:ss a");
try {
this.createDate = formatter.parse(xmlPhoto.getCreateDate());
this.shootDate = formatter.parse(xmlPhoto.getShootDate());
} catch (ParseException e) {
e.printStackTrace();
}
この文字列からDateオブジェクトを作成したいのですがParseExceprion
、オフセット=19を取得します。