Solved

vb.net add month

Posted on 2004-09-09
3
207 Views
Last Modified: 2008-02-01
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
Comment
Question by:hogan9111
  • 2
3 Comments
 
LVL 5

Expert Comment

by:tzxie2000
ID: 12022968
this may more better
 MessageBox.Show(Today.ToString("MMMM yyyy"))
0
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 25 total points
ID: 12023155
MsgBox(Format(DateTime.Now().AddMonths(1), "MMMM yyyy"))
0
 
LVL 5

Expert Comment

by:tzxie2000
ID: 12023251
yeah if you want a after month show
MessageBox.Show(Today.AddMonths(1).ToString("MMMM yyyy"))
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
A short article about problems I had with the new location API and permissions in Marshmallow
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now