pfquery

PFQuery by date

非 Y 不嫁゛ 提交于 2019-11-28 06:35:54
问题 I'm trying to search for all results that contain a certain date (no time) with a PFQuery. I can't seem to figure out why it is not working. My code I am using is below. NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init]; [dateFormat setDateFormat:@"YYY-MM-dd"]; NSString *today; today = [dateFormat stringFromDate:[NSDate date]]; PFQuery *query = [PFQuery queryWithClassName:@"Booking"]; [query whereKey:@"nextAppointment" equalTo:today]; [query findObjectsInBackgroundWithBlock:^