How do I Get a List of Month Names?
Category: java.text, viewed: 8925 time(s).
The example code below helps you to get all month names as an array of String. The first method, getMonths() return the full name string while the second method getShortMonths() return the short name of the month.
The result of the code above are:
month = January month = February month = March month = April month = May month = June month = July month = August month = September month = October month = November month = December month = shortMonth = Jan shortMonth = Feb shortMonth = Mar shortMonth = Apr shortMonth = May shortMonth = Jun shortMonth = Jul shortMonth = Aug shortMonth = Sep shortMonth = Oct shortMonth = Nov shortMonth = Dec shortMonth = germanyMonth = Januar germanyMonth = Februar germanyMonth = März germanyMonth = April germanyMonth = Mai germanyMonth = Juni germanyMonth = Juli germanyMonth = August germanyMonth = September germanyMonth = Oktober germanyMonth = November germanyMonth = Dezember germanyMonth = germanyShortMonth = Jan germanyShortMonth = Feb germanyShortMonth = Mrz germanyShortMonth = Apr germanyShortMonth = Mai germanyShortMonth = Jun germanyShortMonth = Jul germanyShortMonth = Aug germanyShortMonth = Sep germanyShortMonth = Okt germanyShortMonth = Nov germanyShortMonth = Dez germanyShortMonth =
