Thursday, 7 November 2019

Datetime add 1 month to current day

Datetime add 1 month to current day


If you want next month date write DateTime.Now.AddMonths(1) simlary it's depend on you how much month or year you want to add.

If you want to add Mont From a Fix Date then First Convert it to dateteTime like See below

 Convert.ToDateTime(txtInstDate.Text).AddMonths(addmd)


addmd is my month number like 1,2,3,4 and So on try this



No comments:

Post a Comment