Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subtracting dates
Message
 
 
To
26/11/2002 09:36:47
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00726958
Message ID:
00726976
Views:
13
This message has been marked as the solution to the initial question of the thread.
>Using C#, how can I get the current date minus 5? For example, if today is 11/26/2002, how can I initalize a var as 11/21/2002?
>
>Thanks,
>
>Jerry


DateTime MyVar = DateTime.Now.AddDays(-5);
Michael McLain
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform