Solved

vb.net add month

Posted on 2004-09-09
3
231 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

785 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