这是代码
public static final String KEY_DATE_TIME = "reminder_date_time";
SimpleDateFormat datetimeFormat = new SimpleDateFormat(DATE_TIME_FORMAT) ;
try {
String dateString = reminder.getString(reminder.getColumnIndexOrThrow(ReminderDbAdapter.KEY_DATE_TIME));
Date date = (Date) datetimeFormat.parse(reminder.getString(dateString);
mCalendar.setTime(date);
} catch (java.text.ParseException e) {
Log.e("edit_activity", e.getMessage(), e);
}
它没有解析日期,因为所有值都已获取,但日期未解析,因此 logcat 显示错误...帮帮我