Java Month Convert convertDecimalToCharMonth(int month)

Here you can find the source of convertDecimalToCharMonth(int month)

Description

convert Decimal To Char Month

License

Open Source License

Declaration

public static String convertDecimalToCharMonth(int month) 

Method Source Code

//package com.java2s;
// modify it under the terms of the GNU General Public License

public class Main {
    public static String convertDecimalToCharMonth(int month) {
        if (month == 1)
            return "Jan";
        else if (month == 2)
            return "Feb";
        else if (month == 3)
            return "Mar";
        else if (month == 4)
            return "Apr";
        else if (month == 5)
            return "May";
        else if (month == 6)
            return "Jun";
        else if (month == 7)
            return "Jul";
        else if (month == 8)
            return "Aug";
        else if (month == 9)
            return "Sep";
        else if (month == 10)
            return "Oct";
        else if (month == 11)
            return "Nov";
        else if (month == 12)
            return "Dec";
        else/*w w w .j a v a 2s  . c om*/
            return month + "";
    }
}

Related

  1. convertCharMonthToDecimal(String month)
  2. convertMonth(String monthSlashYear)
  3. convertMonth(String value)
  4. convertMonthFromNumber(int month)
  5. convertMonthStringToInt(String monthString)