• 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
Re: Qualifier for date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Qualifier for date


  • Subject: Re: Qualifier for date
  • From: Peter Vandoros <email@hidden>
  • Date: Wed, 30 May 2007 11:32:00 +1000

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:
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:

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

  • Prev by Date: Qualifier for date
  • Next by Date: Re: Qualifier for date
  • Previous by thread: Qualifier for date
  • Next by thread: Re: Qualifier for date
  • Index(es):
    • Date
    • Thread