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

SQL/PHP: Table design question -

NHibernate Passing Session to the Repository -

asp.net - How do I pass login ID as parameter to SharePoint login page? -