I have the following sql statement wich works fine, but it returns the date as 12/20/2004 00:00:00
I need to strip the time off, but haven't been able to make this happen.
Code:
SELECT DATEADD(dd, Create_Time / 86400, '1/1/1970') AS 'Date Open', COUNT(*) AS tcktOpen FROM HPD_HelpDesk WHERE AND (Status >=4) AND (DATEADD(dd, Create_Time / 86400, '1/1/1970') >= '1/1/2004')AND (DATEADD(dd, Create_Time / 86400, '1/1/1970') < '12/20/2004') GROUP BY DATEADD(dd, Create_Time / 86400, '1/1/1970') Order By DATEADD(dd, Create_Time / 86400, '1/1/1970')ASC