user42348
user42348

Reputation: 4319

To add one month to current date

I have to add one month to todays date and have to get date after 1 month.Can anybody help?

Upvotes: 15

Views: 46163

Answers (4)

Simon
Simon

Reputation: 34830

using Fluent DateTime http://fluentdatetime.codeplex.com/

       Dim newDate as DateTime = 1.Months().FromNow()

Upvotes: 1

Marcin Deptuła
Marcin Deptuła

Reputation: 11957

dateAfterMonth = dateAfterMonth.AddMonths(1)
If you would add 1 month from now:
dateAfterMonth = DateTime.Now.AddMonths(1)

Upvotes: 6

pero
pero

Reputation: 4259

Try DateTime.AddMonths Method

Upvotes: 3

Philip Fourie
Philip Fourie

Reputation: 116827

Dim newDate as DateTime = DateTime.Now.AddMonths(1)

Upvotes: 30

Related Questions