I want to check the current date if its equal to last three days of month excluding saturdays and sundays…
I can get the last day of month
SELECT DATEADD(s,-1,DATEADD(mm, DATEDIFF(m,0,GETDATE())+1,0))
I am not sure how to check the getdate() with last three days of month excluding saturdays and sundays..
Will be of great help..
Thanks
If what you really meant is that you want the last three non-weekend days in the month, then:
This will yield no results if today is not in those three days.