Re: Correct format for date qualifier in EO Modeler?
Re: Correct format for date qualifier in EO Modeler?
- Subject: Re: Correct format for date qualifier in EO Modeler?
- From: Art Isbell <email@hidden>
- Date: Sat, 20 Mar 2004 22:27:20 -1000
On Mar 20, 2004, at 7:02 PM, Ray Ackland wrote:
If I enter the qualifier as (date > "2002-01-01") then the quotation
marks get included in the fetch and no records are returned (the fetch
doesn't even seem to complete).
I know to you and me, "2002-01-01" looks like a date, but to EOF it
looks like a plain old string. Try something like this (untested):
NSTimestamp date = new NSTimestamp(2002, 1, 1, 0, 0, 0, null);
EOQualifier qualifier = EOQualifier.qualifierWithQualifierFormat("date
> %@", new NSArray(date));
Aloha,
Art
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.