0

I would like to query Parse.com and look for events in the future. Currently I am getting every object then comparing the date from the Parse.com object with Todays date in the app and display only the future events. This means that it is running slowly. I was wondering how I should compare the dates in the query.

Any suggestions? Thanks

1 Answer 1

1

PFQuery provides all of the inequality operators (greaterThan, lessThan, greaterThanOrEqualTo, lessThanOrEqualTo), so the future looks like:

[query whereKey:@"myDateCol" greaterThan:[NSDate date]];
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.