| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | Newsletters | VB Forums | Developer.com |
|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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? |
|
#4
|
|||
|
|||
|
Re: How to compare if date is in between two dates.
Quote:
Cdate(DateTimeField)
__________________
Madhivanan Failing to plan is Planning to fail |
![]() |
| Bookmarks |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|