Matching a date field in a predicate
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