Skip to Content
author's profile photo Former Member
Former Member

Filter Business Partner with CreateDate / UpdateDate

Hello,

I want to get BusinessPartners (OCRD) whose have CreateDate / updateDate between two date?

It is possible?

Thanks a lot!

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 07, 2010 at 08:52 AM

    Hello

    Yes it is possible.

    select * from ocrd where createdate between [%0] and [%1]

    Regards

    János

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Yeah, but it's bugging with the updateDate?

      This is my Query but it doesn't work when I asign the datareader to the BusinessObject!

      SELECT * FROM OCRD WHERE ((OCRD.UpdateDate between convert(datetime,'01/09/2010',103) AND convert(datetime,'31/10/2010',103)) OR ((OCRD.CreateDate between convert(datetime,'01/09/2010',103) AND convert(datetime,'31/10/2010',103))))

  • author's profile photo Former Member
    Former Member
    Posted on Oct 07, 2010 at 02:08 PM

    Hi,

    Try this:

    select * from ocrd t0 
    where t0.createdate between [%0] and [%1] OR t0.Updatedate between [%0] and [%1]
    

    Thanks,

    Gordon

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 07, 2010 at 03:07 PM

    try to put

    SET DATEFORMAT DMY ...... YOUR QUERY
    

    before your select that you mentioned

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 09, 2010 at 09:04 AM

    Hello freinds

    put Varchar(10)

    in the place of Dtaetime as like convert(Varchar(10),'01/09/2010',103)

    may be yur problem solved

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.