SHARE
TWEET

Untitled

a guest Jul 6th, 2017 10 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. DECLARE @plus11Month AS CHAR(8) = CONVERT(CHAR(8), CAST(DATEADD(MONTH, DATEDIFF(MONTH, 0, CONVERT(CHAR(8), GETDATE(), 112))+11, 0) AS DATE), 112) --The 11th month from the current month
  2. DECLARE @plus12Month AS CHAR(8) = CONVERT(CHAR(8), CAST(DATEADD(MONTH, DATEDIFF(MONTH, 0, CONVERT(CHAR(8), GETDATE(), 112))+12, 0) AS DATE), 112) --The 12th month from the current month
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top