Created
March 13, 2013 13:38
-
-
Save PirateGrunt/5152111 to your computer and use it in GitHub Desktop.
Test calculation of start and end period udfs.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DECLARE @TestDate datetime | |
SET @TestDate = CAST('08-15-2000' AS datetime) | |
SELECT dbo.udfBeginningOfYear(@TestDate) AS BeginningOfYear | |
, dbo.udfEndOfYear(@TestDate) AS EndOfYear | |
, dbo.udfBeginningOfSemi(@TestDate) AS BeginningOfSemi | |
, dbo.udfEndOfSemi(@TestDate) AS EndOfSemi | |
, dbo.udfBeginningOfQuarter(@TestDate) AS BeginningOfQuarter | |
, dbo.udfEndOfQuarter(@TestDate) AS EndOfQuarter |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment