Android Month String Get GetMonthName(int month)

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

Description

Get Month Name

Declaration

public static String GetMonthName(int month) 

Method Source Code

//package com.java2s;

public class Main {
    public static String GetMonthName(int month) {
        switch (month) {
        case 1://from   www.j  a  va2  s.  co m
            return "Jan";
        case 2:
            return "Feb";
        case 3:
            return "Mar";
        case 4:
            return "Apr";
        case 5:
            return "May";
        case 6:
            return "June";
        case 7:
            return "July";
        case 8:
            return "Aug";
        case 9:
            return "Sep";
        case 10:
            return "Oct";
        case 11:
            return "Nov";
        case 12:
            return "Dec";
        default:
            return "Jan";

        }
    }
}

Related

  1. getMonthNames()
  2. getMonthNames(Locale l, int len)
  3. getShortMonths()
  4. getShortMonthString(int month)
  5. getLongMonthString(int month)
  6. intMonthToString(int month)