What is the best way to shorten a datetime that includes milliseconds to only have the second?
For example 2012-01-25 17:24:05.784 to 2012-01-25
2012-01-25 17:24:05.784
2012-01-25
so, the easiest way now is:
select convert(datetime2(0) , getdate())