标签:
DECLARE @CurrentTime DATETIME DECLARE @Start DATETIME DECLARE @End DATETIME SET @CurrentTime = GETDATE() SET @Start = DATEADD(ms, -1, DATEADD(mm, DATEDIFF(m, 0, @CurrentTime), 0)) SET @End = DATEADD(ms, -3, DATEADD(mm, DATEDIFF(m, 0, @CurrentTime) + 1, 0)) PRINT @CurrentTime PRINT @Start PRINT @End
标签:
原文地址:http://www.cnblogs.com/mtsl/p/4232509.html