DECLARE @MIN AS INT SET @MIN = DATEPART(N, GETDATE()) SELECT (@MIN / 5) * 5 AS LOW, ((@MIN / 5) * 5) + 5 AS HI
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)