Hello
I have column with value
To_Date
july 2015
jun 2015
Aug 2015
Jun 2016
and i want the record which is from current month and year To next 2 month and year
means i want record from jun 2015 To Aug 2015
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Manoj BhoirRank #599 · 4K reputationPosted Jun 20, 2015, 7:21 AM EDT
Where To_Date BETWEEN FORMAT(GETDATE(), 'yyyy-MM-01')
AND FORMAT(DATEADD(M, 2, GETDATE()), 'yyyy-MM-01')