'How to add a date three weeks from now using DateTime C# [duplicate]
I am trying to add a due date for a library app. I got today's date & time using
DateTime today = DateTime.Today;
Any suggestions on how to add three weeks to that at the time it is being checked out?
Solution 1:[1]
var threeWeeksFromToday = DateTime.Today.AddDays(3*7);
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Cros |
