Click to See Complete Forum and Search --> : How to compare if date is in between two dates.


Farhad
March 26th, 2004, 07:12 AM
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

harmonycitra
March 26th, 2004, 12:55 PM
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

ray5
September 6th, 2005, 08:43 PM
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?

Madhi
September 10th, 2005, 05:51 AM
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)