Skip to Content
0
Jul 31, 2020 at 04:12 PM

Crystal Reports: datetime data type with date parameter

89 Views Last edit Jul 31, 2020 at 04:12 PM 2 rev

I created a report that asks users to enter a date range. The date is actually in datetime format in the database, but in the report, the user enters the only date. This causes the report to miss some of the records. Is there a way to change the date format in the report, so that the report will not omit any data?

The query looks like this in the command (simplified version):

Select userName, ID, StartDate
From Table
Where StartDate between {?BeginDate} and {?EndDate}