Hello,
I need to get 3 business days date prior to Current date, Saturday Sunday needs to be excluded.
For example, Today is Monday output should be Previous Wednesday
Please help, Thanks in advance
Hello,
I need to get 3 business days date prior to Current date, Saturday Sunday needs to be excluded.
For example, Today is Monday output should be Previous Wednesday
Please help, Thanks in advance
previousBusinessDay=DateTime.Today.AddDays(If(DateTime.Today.DayOfWeek = DayOfWeek.Monday, -3, -1))
previousBusinessDay.ToString(“yyyy-MM-dd”)
BusinessDay = YourDate.AddDays({-5,-5,-5,-5,-3,-3,-3}(YourDate.DayOfWeek))
in the Array we configured the offset, first item offset for a Sunday,
then Mon,Tue…Sat
This worked, Thanks a lot
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.