我想在 12 月内查询对象,但它返回 Jan-Nov 对象。这是我的查询。
Calendar calendar = Calendar.getInstance();
calendar.set(Calendar.DAY_OF_MONTH, 1);
calendar.set(Calendar.MONTH, 0);
Date date = calendar.getTime();
Log.d("date", String.valueOf(date));
ParseQuery<ParseObject> query = ParseQuery.getQuery("Post");
query.whereGreaterThanOrEqualTo("createdAt", date);
query.count();
List<ParseObject> results = null;
results.size(); //this count include the whole year value