StartDate <= CONVERT(datetime, @pi_Date, 101) @pi_Date = EnteredDate.
set @date = dateadd(s, -1, dateadd(d, 1, @date))
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)