Android Month String Get intMonthToString(int month)

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

Description

int Month To String

Declaration

public static String intMonthToString(int month) 

Method Source Code

//package com.java2s;

public class Main {
    public static String intMonthToString(int month) {
        String[] months = { "Jan", "Feb", "Mar", "Apr", "May", "Jun",
                "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "UnDec" }; //for leap years

        return months[month];
    }// www. j  av  a 2  s. c  o  m
}

Related

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