Solved

vb.net add month

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
changeXy challenge 13 67
tidtcpserver connection lost handle 2 70
When i run adoquery my application freezes 26 150
Auto-indent certain lines in Notepad++ 10 29
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 show, step by step, how to integrate R code into a R Sweave document
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…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

910 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

21 Experts available now in Live!

Get 1:1 Help Now