Let’s say your creating an application that needs to send you an email monthly. The date start date is FEB 29, 2012. How do you deal with that for next year since there is no FEB 29, 2013. Likewise if the start date is JAN 31, there is no FEB 31 or APR 31, and so on…
Share
Simply use the DateTime class which is perfect for this:
If I want the date 1 month from 29/2/2012:
And a year later:
Using this, you can easily caculate any date intervals you require.