Date Calculation
I need to know one thing. Suppose, date is october 1 2008(1.10.2008). If 30 days is added to that date then the result will be 31.10.2008. How could do that automatically using C#.net
I need help regarding this problem.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
AlanPosted Oct 22, 2008, 9:21 AM
Like this:
DateTime dt = DateTime.Parse("October 1 2008");
dt = dt.AddDays(30);
MessageBox.Show(dt.ToString("dd.MM.yyyy"));
Shomen DebPosted Oct 23, 2008, 1:51 AM