Is there a simple way to truncate the current time to the minute using the getdate() function.
I need to run a procedure every minute and make calculations on the previous minute --
ie. At 2:12 I need to calculate the values for
>= 2:11 and < 2:12. getdate() is going to return something like 2:12:45.234. I need the value 2:12:00 returned.
What is the simplest way to go about this?
I need to run a procedure every minute and make calculations on the previous minute --
ie. At 2:12 I need to calculate the values for
>= 2:11 and < 2:12. getdate() is going to return something like 2:12:45.234. I need the value 2:12:00 returned.
What is the simplest way to go about this?