I'll be replacing the following with a DateAdd(DateDiff()) method...
< M!ke >
I am not a hamster and life is not a wheel.
Code:
DECLARE @datetime DATETIME
SET @datetime = '7/5/2007 11:59:59 PM'
-- so what day is it?
SELECT CAST(CAST(@DateTime AS INTEGER) AS DATETIME)
-- and what time of day? on what day?
SELECT CAST(@DateTime - CAST(@DateTime AS INTEGER) AS DATETIME)
< M!ke >
I am not a hamster and life is not a wheel.