• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Matching a date field in a predicate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Matching a date field in a predicate


  • Subject: Matching a date field in a predicate
  • From: Steven Crosley <email@hidden>
  • Date: Wed, 20 Feb 2008 22:22:56 -0600

I'm trying to match a date from a date field in Core Data.

The predicate looks like this:

NSPredicate *predicate = [NSPredicate predicateWithFormat: @"createdDate = %@","2008-02-20 21:58:23 -0600"];

It "should" match this row in my Core Data XML:

<attribute name="createddate" type="date">225259103.84318500757217407227</attribute>

Is this an issue with the way it gets stored in Core Data? Do I need to convert the String in my predicate to a different format?

Thanks,
Steven

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Matching a date field in a predicate
      • From: "Kyle Sluder" <email@hidden>
  • Prev by Date: Using NSKeyedUnarchiver on GarageBand data
  • Next by Date: Help Understanding Proper Key Event Handling
  • Previous by thread: Using NSKeyedUnarchiver on GarageBand data
  • Next by thread: Re: Matching a date field in a predicate
  • Index(es):
    • Date
    • Thread