المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Add int to DateTime in C#



C# Programming
03-31-2010, 08:02 PM
Hi world and word and u all Codeproject users !

Q)I want get date of 10 days after the current date !
more info :

the date today is : 2010/03/31.
10 days later the date will be : 2010/04/10.
Can dateTime compute this for me.

Example :(Something like this!)

DateTime dateTime = DateTime.Now + 10;