Tuesday 2 February 2021

MSSQL - Round date to the last hour

 Watch this example on YouTube


 

SELECT DateAdd(hour, datediff(hour, 0, getdate()),0)

No comments:

Post a Comment