vba add month to date

The solution for “vba add month to date” can be found here. The following code will assist you in solving the problem.

MsgBox DateAdd(“m”, 1, “1995-01-31”)         ‘ 1995-02-28
MsgBox DateAdd(“m”, -2, “1995-01-31”) ‘ 1994-11-30
MsgBox DateAdd(“yyyy”, 2, “1995-01-31”) ‘ 1997-01-31

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts