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 -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -