.SQLiteException:接近“00”:语法错误(代码1):,同时编译:

时间:2015-07-05 16:16:32

标签: android calendar

我是android的新手,我试图比较两个日期字符串,但我总是得到这个,我不知道如何解决..这是我错误的代码部分

int year=Calendar.getInstance().get(Calendar.YEAR)+1900;

int month=Calendar.getInstance().get(Calendar.MONTH)+1;

int day=Calendar.getInstance().get(Calendar.DAY_OF_MONTH);

DbReminders bazaDelete=new DbReminders(context);

bazaDelete.open();

bazaDelete.deleteReminder("DATE<"+year+"-"+month+"-"+day+" 00:00 AM");

bazaDelete.close();

podsetniciAdapter.notifyDataSetChanged();

0 个答案:

没有答案