SyntaxTerror
Technical User
We have a report where we allow the user to specify a date range and pull all of the purchase orders pulled between the specified dates.
Well, there is a problem with the report.
The code is like this:
WHERE CreatedDate BETWEEN @begindate AND @enddate
If the begin date is 2011-06-29 and the end date is 2011-06-30, it is ignoring all of the purchase orders made after 2011-06-30 00:00:00, so, 2011-06-30 0:09:52 is being filtered out.
What can I do to strip the time of the CreatedDate values so they pull only the dates?
Thanks in advance!
Well, there is a problem with the report.
The code is like this:
WHERE CreatedDate BETWEEN @begindate AND @enddate
If the begin date is 2011-06-29 and the end date is 2011-06-30, it is ignoring all of the purchase orders made after 2011-06-30 00:00:00, so, 2011-06-30 0:09:52 is being filtered out.
What can I do to strip the time of the CreatedDate values so they pull only the dates?
Thanks in advance!