Solved

convert month number to month name

Posted on 2006-11-03
1
2,333 Views
Last Modified: 2012-08-14
Hi:

How do I convert, say, 10 to OCT and 11 to NOV?

Thanks.
0
Comment
Question by:sdc248
1 Comment
 
LVL 86

Accepted Solution

by:
CEHJ earned 125 total points
ID: 17869696
DateFormat df = new SimpleDateFormat("MMM");
int month = 10;
System.out.println(df.format(month - 1)); // 0-indexed
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
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…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This video teaches viewers about errors in exception handling.

706 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

18 Experts available now in Live!

Get 1:1 Help Now