I am trying to compare some dates for ParseQuery. It does not give me errors, but it just does not filter the dates. Here is the code:
if(dateFrom!=null){ query.whereLessThanOrEqualTo("from", dateFrom); } if(dateTo!=null){ query.whereGreaterThanOrEqualTo("to", dateTo); }
date - java.util.Date (not sql)
Date dateFrom = new Date(fromYear,fromMonth,fromDay,fromHour,fromMinute); Date dateTo = new Date(toYear,toMonth,toDay,toHour,toMinute);
when I look at ParseObjects on parse.com, I see that the objects received the date and time.
Can someone tell me why it is not filtering? Thanks you
source share