Java Month intToMonth(int m)

Here you can find the source of intToMonth(int m)

Description

int To Month

License

Artistic License

Declaration

public static String intToMonth(int m) 

Method Source Code

//package com.java2s;
//License from project: Artistic License 

public class Main {
    public static String intToMonth(int m) {
        switch (m) {
        case 0:// www. j  av a 2  s . co  m
            return "Jan";
        case 1:
            return "Feb";
        case 2:
            return "Mar";
        case 3:
            return "Apr";
        case 4:
            return "May";
        case 5:
            return "Jun";
        case 6:
            return "Jul";
        case 7:
            return "Aug";
        case 8:
            return "Sep";
        case 9:
            return "Oct";
        case 10:
            return "Nov";
        case 11:
            return "Dec";
        }
        return "Unknown Month: " + m;
    }
}

Related

  1. getStatis_month()
  2. getTargetMonth(Integer targetYm)
  3. getTotalMonths(long time)
  4. getYMonth(String dateFromDB)
  5. impleMonth(int month)
  6. isMonthInRange(int month)
  7. isNumMonth(int m)
  8. isQuarterMonth(String[] types)
  9. isSameMonth(String preMonth, String month)