Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 292
  • Last Modified:

vb.net add month

I have a button

that the user will hit and it will look at the current month and at 1 to it;

example:
Current date is June 2004

user hit button msgbox says July 2004

0
hogan9111
Asked:
hogan9111
  • 2
1 Solution
 
tzxie2000Commented:
this may more better
 MessageBox.Show(Today.ToString("MMMM yyyy"))
0
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
MsgBox(Format(DateTime.Now().AddMonths(1), "MMMM yyyy"))
0
 
tzxie2000Commented:
yeah if you want a after month show
MessageBox.Show(Today.AddMonths(1).ToString("MMMM yyyy"))
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now