This seems pretty basic and I am sure there is a simple way to do this but it is escaping me. What I want is date time with just the current date and hour.
For example at 7:49 today I would like to return 1/26/2009 07:00:00.000 and at 8:15 1/26/2009 08:00:00.000.
I know I can use dateadd and datepart but this will be in a case statement so I would like to keep it as clean as possible.
Thank for your help in advance
Jeremy
For example at 7:49 today I would like to return 1/26/2009 07:00:00.000 and at 8:15 1/26/2009 08:00:00.000.
I know I can use dateadd and datepart but this will be in a case statement so I would like to keep it as clean as possible.
Thank for your help in advance
Jeremy