Android Month Date Get getMonthName(String substring)

Here you can find the source of getMonthName(String substring)

Description

get Month Name

Declaration

private static String getMonthName(String substring) 

Method Source Code

//package com.java2s;

public class Main {
    private static String getMonthName(String substring) {

        switch (Integer.parseInt(substring)) {
        case 1://from   w  ww .  j a v a 2  s .c  om
            return "Jan";
        case 2:
            return "Feb";
        case 3:
            return "Mar";
        case 4:
            return "Apr";
        case 5:
            return "Mei";
        case 6:
            return "Jun";
        case 7:
            return "Jul";
        case 8:
            return "Agust";
        case 9:
            return "Sept";
        case 10:
            return "Okt";
        case 11:
            return "Nov";
        case 12:
            return "Des";
        default:
            break;
        }

        return null;
    }
}

Related

  1. monthOffset(Date date, int offset)
  2. getMonth()
  3. getCurrentMonth()
  4. getStringMonth(Date date)
  5. getMonth(int month, Locale locale)
  6. getEndCurrentMonth()
  7. getEndCurrentMonthCal()
  8. getStartCurrentMonth()
  9. getStartCurrentMonthCal()