0
我有類名(「RHospital」) ,我在列(「appointDate」)中搜索日期列表,但是我得到的是完整的ParseObject,因爲我在查詢方法ParseObject,但我只想在(「」指定日期「) 日期如何檢索它?如何從ParseObject獲取特定數據
我的問題是,我不知道該怎麼辦的搜索結果在解析 類特定數據的列表,這是數據的解析
的屏幕截圖,這是mycode的
Calendar cal = Calendar.getInstance();
cal.set(2015, 8, 12, 0, 0, 0);
Calendar sswal = Calendar.getInstance();
sswal.set(2015, 8, 12, 23, 30, 0);
Date dd = cal.getTime();
Date mok =sswal.getTime();
final ParseObject[] most = new ParseObject[15];
Date moste[]=new Date[15];
ParseQuery<ParseObject> query = ParseQuery.getQuery("RHospital");
query.selectKeys(Arrays.asList("appointDate"));
query.whereGreaterThanOrEqualTo("appointDate", dd);
query.whereLessThanOrEqualTo("appointDate", mok);
query.findInBackground(new FindCallback<ParseObject>() {
@Override
public void done(List<ParseObject> list, com.parse.ParseException e) {
if (list == null) {
Log.d("score", "The getFirst request failed.");
} else {
mStatus = list;
for (ParseObject Dated: list){
post =Dated.getParseObject("appointDate");
Log.d("appointDate", "retrieved a related date");
}
}
}
});
預先感謝您