Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subtracting dates
Message
From
26/11/2002 09:57:25
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00726958
Message ID:
00726983
Views:
15
Perfect! Thank you.

Jerry



>>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);
Previous
Reply
Map
View

Click here to load this message in the networking platform