• it doesn't wait until noon to start rounding up...

    DECLARE @TheDate DATETIME

    SET@TheDate = '2008-02-05 11:59:59.993'

    SELECT@TheDate

    SELECTCAST(@TheDate AS INT)

    SELECTCAST(CAST(@TheDate AS INT) AS DATETIME)

    SET@TheDate = '2008-02-05 11:59:59.997'

    SELECT@TheDate

    SELECTCAST(@TheDate AS INT)

    SELECTCAST(CAST(@TheDate AS INT) AS DATETIME)

    [font="Arial Narrow"]bc[/font]