How can I get the date of next Tuesday?
In PHP, it's as simple as strtotime('next tuesday');
.
How can I achieve something similar in .NET
How can I get the date of next Tuesday?
In PHP, it's as simple as strtotime('next tuesday');
.
How can I achieve something similar in .NET
There are less verbose and more clever/elegant solutions to this problem, but the following C# function works really well for a number of situations.
It could be an extension also, it all depends
Usage