Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Qualifier for date



Hi Ted,

Just combine the two EOQualifiers using the EOAndQualifier (or EOOrQualifier).
Eg.
EOQualifier q1; // your first qualifier
EOQualifier q2; // your second qualifier


EOQualifier finalQualifier = new EOAndQualifier( new NSArray( new EOQualifier[] { q1, q2 } ) );

Regards

Peter

Ted Archibald wrote:
Hi,

I've been trying to figure out how to do qualifiers for dates and am having no luck.

If I want to get all the EOs for the month of April 2007, I currently have to use two qualifiers. One that is greater than or equal to April 1st and one that is less than or equal to April 30th. Is there a way I can do it just like SQL, e.g. "date LIKE '2007-04%'".

Can you only do this with an EOQualifier or can you do this in the Fetch Spec Qualifier in the model?

--
This message has been scanned for viruses and
dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
believed to be clean.
------------------------------------------------------------------------

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/email@hidden

This email sent to email@hidden

-- Peter Vandoros Software Engineer Etech Group Pty Ltd Level 3/21 Victoria St Melbourne VIC 3000 Australia

Ph: +61 3 9639 9677
Fax: +61 3 9639 9577
----------------------------------
IMPORTANT: This e-mail message and any attachments are confidential and may be privileged. If received in error, please reply to this message and destroy all copies and any attachments. You should check this message and any attachments for viruses or defects. Our liability is limited to resupplying any affected message or attachments. For more information about Etech Group, please visit us at http://www.etechgroup.com.au.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/email@hidden


This email sent to email@hidden
References: 
 >Qualifier for date (From: "Ted Archibald" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.