I am creating a package which will store a report's generation date. on basis of that date need to derive the next Wwednesday date.
Ex: report date is 11/11/2019 so wed date should be 13/11/2019.
I am creating a package which will store a report's generation date. on basis of that date need to derive the next Wwednesday date.
Ex: report date is 11/11/2019 so wed date should be 13/11/2019.
This Derived Column Expression should provide the next Wednesday's date.
DATEADD("DAY",((1 + DATEDIFF("DAY",(DT_DATE)"1/1/1970",GETDATE())) / 7) * 7 + 6,(DT_DATE)"1/1/1970")
Parts (inside out).
Notes