Aloha I need to fix the following
-(DATEDIFF(wk, dateadd(mm,3,@StartDate), dateadd(mm,4,@StartDate)) * 2)
the second dateadd function should subtract -1 how do I set that up? otherwise it goes to the first day of the next month. I want the last day of the current month.
Start Free Trial