Skip to Content
0
Former Member
May 13, 2008 at 05:43 AM

How to Get Next Month?

67 Views

I am using the following code to get current month in "MMM" format.

String month1 = (new SimpleDateFormat("MMM").format(new Date()));

How can i get the subsequent months?

for example:

if current month1 = "May". then month2 should be "Jun" and month3 should be "July" and so on...