PFQuery by date
问题 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:^