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# - PInvoke of NetUserAdd returns 24 -

c# - XMLDocument.Validate Error: System.InvalidOperationException : The XmlSchemaSet on the document is either null or has no schemas in it -