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