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
Post a Comment