Код: Выделить всё
format = new SimpleDateFormat("EEE MMM dd yyyy hh:mm aaa");
this.settDate(new Timestamp((format.parse(sDate)).getTime()));
Полный метод:
Код: Выделить всё
public void saveTask(int iDevice, String description, String sDate) throws ParseException {
format = new SimpleDateFormat("EEE MMM dd yyyy hh:mm aaa");
this.setiDeviceId(iDevice);
this.setsDescription(description);
this.settDate(new Timestamp((format.parse(sDate)).getTime()));
DatabaseManager.save(this);
}
Код: Выделить всё
java.text.ParseException: Unparseable date: "Thu Jan 19 2012 01:00 AM"
[img]https:// i.sstatic.net/vzJ5P.png[/img]
Спасибо!
Подробнее здесь: https://stackoverflow.com/questions/891 ... 12-0800-pm
Мобильная версия