Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8187669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T02:38:25+00:00 2026-06-07T02:38:25+00:00

I get a bunch of dates from a server in YYYY-MM-DD NSString format which

  • 0

I get a bunch of dates from a server in YYYY-MM-DD NSString format which we immediately stick into core data for accessing. However, I need to do a sorted fetch request with a greater than date predicate. How can I say “date greater than X” when date is a string instead of a date object?

AKA, start below is NSString, not NSDate

 NSPredicate *predicate = [NSPredicate predicateWithFormat:@"(start <= %@) AND (name == %@)", currentTime, name];
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T02:38:27+00:00Added an answer on June 7, 2026 at 2:38 am

    Instead of storing the dates as strings, and then having to sort the strings, parse the dates with an NSDateFormatter, then store them as NSDates in core data, then you can do all sorts of predicates with them with relative ease.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have selected a bunch of data from my access database which one of
I'm using a tkinter GUI to get a bunch of different entries from the
I have a bunch of excel documents I am extracting dates from. I am
When I profile my app in Instruments 4.3, I get a bunch of leaks.
Tried a bunch of things but I can't get it to work consistently amid
I'm trying to get phpExcel to draw a border around a bunch of cells.
I've read a bunch of stuff on the web about how to get at
How do I programatically get the screen resolution on WP7? Here are a bunch
Get class from div inside an li and add to the same li. The
I'm currently working on a conversion script to transfer a bunch of old data

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.