CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • Installing SQL Server 2008
  • Writing UDFs for Firebird Embedded SQL Server
  • [Updated] Shutdown Manager
  • Building Windows Azure Cloud Service Applications with Azure Storage and the Azure SDK

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > Visual Basic Programming > Crystal Reports
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1    
    Old March 26th, 2004, 07:12 AM
    Farhad Farhad is offline
    Member
     
    Join Date: Sep 2002
    Posts: 87
    Farhad is an unknown quantity at this point (<10)
    How to compare if date is in between two dates.

    I have a report that binds to view. Every record has an "Employee Joining date" date field with it.

    I have to filter out records ; whose joining date is with in two different dates.

    How will i set "selection Criteria"; as i dont have any idea of the crystal reports syntax.

    SOme refrence or sample will be valuable for me.

    PLz. reply soon

    Thanks in advance
    Reply With Quote
      #2    
    Old March 26th, 2004, 12:55 PM
    harmonycitra harmonycitra is offline
    Member
     
    Join Date: May 2003
    Posts: 163
    harmonycitra is on a distinguished road (20+)
    Give the folg. in ur selection formula

    {join_date} in {?start} to {?end}


    join_date => ur database field

    start, end => parameter fields

    Hope this will work
    Reply With Quote
      #3    
    Old September 6th, 2005, 08:43 PM
    ray5 ray5 is offline
    Junior Member
     
    Join Date: Sep 2005
    Posts: 1
    ray5 is an unknown quantity at this point (<10)
    Re: How to compare if date is in between two dates.

    what i see is that the date in crystal report is consist of time too...
    so how to get rid of the time, so that i can get only the date?
    Reply With Quote
      #4    
    Old September 10th, 2005, 05:51 AM
    Madhi Madhi is offline
    Senior Member
     
    Join Date: Jul 2004
    Location: Chennai, India
    Posts: 1,064
    Madhi will become famous soon enough (50+)
    Re: How to compare if date is in between two dates.

    Quote:
    Originally Posted by ray5
    what i see is that the date in crystal report is consist of time too...
    so how to get rid of the time, so that i can get only the date?
    Use Cdate Function

    Cdate(DateTimeField)
    __________________
    Madhivanan

    Failing to plan is Planning to fail
    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > Visual Basic Programming > Crystal Reports


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 11:45 PM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
    Copyright WebMediaBrands Inc. 2002-2009