android - .SQLiteException: near “00”: syntax error (code 1): , while compiling: -
i new android, , tried compare 2 date strings, this, don't know how solve.. here part of code have mistake
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();
Comments
Post a Comment