Android Utililty Methods Month String Get

List of utility methods to do Month String Get

Description

The list of methods to do Month String Get are organized into topic(s).

Method

StringgetShortMonthString(int month)
get Short Month String
return MONTHS_SHORT[month];
StringgetLongMonthString(int month)
get Long Month String
return MONTHS_LONG[month];
StringGetMonthName(int month)
Get Month Name
switch (month) {
case 1:
    return "Jan";
case 2:
    return "Feb";
case 3:
    return "Mar";
case 4:
...
StringintMonthToString(int month)
int Month To String
String[] months = { "Jan", "Feb", "Mar", "Apr", "May", "Jun",
        "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "UnDec" }; 
return months[month];