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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Manoj BhoirPosted Jun 20, 2015, 11:21 AM
Where To_Date BETWEEN FORMAT(GETDATE(), 'yyyy-MM-01')
AND FORMAT(DATEADD(M, 2, GETDATE()), 'yyyy-MM-01')