I want the output date,for example, the nearest Tuesday from today ( November 24, 2018 ) is November 27, 2018
Can an expression be implemented?
Use below code
Now.AddDays(-7 + (DayOfWeek.Tuesday- Now.DayOfWeek)).ToShortDateString
Now.AddDays(7 + (DayOfWeek.Tuesday- Now.DayOfWeek)).ToShortDateString
You’re a genius! It worked very well.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.