WoodyGuthrie
MIS
I have input parameters @SDate and @EDate for my date range. The date being compared is a date/time and so I do a conversion to (nvarchar(20),101) to get mm/dd/yyyy. The problem is sometimes the user enters the date parameters as mm/dd/yy. In this case it works fine for @SDate but the range is not matched as intended for @EDate. It pulls data from one day less than the intended End Date of the range. Any suggestions how to better handle this?
Thanks.
WHERE (CONVERT(nvarchar(20),DteDate, 101)>= @SDate
AND (CONVERT(nvarchar(20), DteDate, 101) <= @EDate) AND...
Woody
Thanks.
WHERE (CONVERT(nvarchar(20),DteDate, 101)>= @SDate
AND (CONVERT(nvarchar(20), DteDate, 101) <= @EDate) AND...
Woody