date - How can I convert an Integer to localized month name in Java? -


I get an integer and I have to convert it to different places in one month's names:

For example Local N-Us:
1 -> Jan
2 -> February

For example Local S-MX:
1 -> Enero
2 -> February

  import java.text.DateFormatSymbols; Public String Mill (Int. Months) {New DateFormat Symbols (back)) getMonths () [months -1]; }  

Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -