Java Month of Year getMonthOfYear(int m)

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

Description

get Month Of Year

License

Open Source License

Declaration

public static String getMonthOfYear(int m) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String getMonthOfYear(int m) {
        if (m == 0) {
            return "Jan";
        } else if (m == 1) {
            return "Feb";
        } else if (m == 2) {
            return "Mar";
        } else if (m == 3) {
            return "Apr";
        } else if (m == 4) {
            return "May";
        } else if (m == 5) {
            return "Jun";
        } else if (m == 6) {
            return "Jul";
        } else if (m == 7) {
            return "Aug";
        } else if (m == 8) {
            return "Sep";
        } else if (m == 9) {
            return "Oct";
        } else if (m == 10) {
            return "Nov";
        } else if (m == 11) {
            return "Dec";
        } else {/*from  w  w  w. j a  v  a  2 s .  co m*/
            return "asdf";
        }
    }
}

Related

  1. getLastMonthOfYear()
  2. getMaxDayOfMonth(int year, int month)
  3. getMonth(int week, int year)
  4. getMonthDays(Object year, Object month)
  5. getMonthHaveDays(int year, int month)
  6. getMonthOfYear(long time)
  7. getMonthOfYearFromTimestamp(long ms)
  8. getMonthStart(int year, int month)
  9. getNextiMonth(Date date, int month)