Click here to Skip to main content
15,900,495 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi
how to add 2days to todays date

plz give me a idea
Posted
Comments
Sandeep Mewara 14-Aug-10 4:05am    
Did you tried using Visual Studio 'dot' intellisense?

1 solution

C#
DateTime dt = new DateTime();
dt.AddDays(2);


Read all about Date manipulations here:
DateTime Members[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900