I have to add one month to todays date and have to get date after 1 month.Can anybody help?
Firstly, the Date() constructor is called with a new keyword. In this constructor, the now() method is employed with “3600 * 1000 * 24”(number of milliseconds in one day) to add one day to the current date. The now() method returns the milliseconds. Lastly, the updated date is printed on the console.
Dim newDate as DateTime = DateTime.Now.AddMonths(1)
dateAfterMonth = dateAfterMonth.AddMonths(1)
If you would add 1 month from now:dateAfterMonth = DateTime.Now.AddMonths(1)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With