March 28, 2012 at 10:50 pm
dwain.c (3/28/2012)
Lynn - Looks like the third (hidden) line on my last post!
Yep, missed it.
December 29, 2015 at 1:35 pm
This worked for me just great
thanks
December 29, 2015 at 1:56 pm
Got a bit messier than I was hoping for:
SELECT DATEADD(Hour, DATEPART(hour, GETDATE()), CAST(CAST(GETDATE() AS DATE) AS DATETIME))
For best practices on asking questions, please read the following article: Forum Etiquette: How to post data/code on a forum to get the best help[/url]
December 29, 2015 at 10:07 pm
Try this
select dateadd(minute, datediff(minute, 0, yourcolumn), 0) from yourtable
Viewing 4 posts - 16 through 18 (of 18 total)
You must be logged in to reply to this topic. Login to reply