Java Month MonthText(int iIndex)

Here you can find the source of MonthText(int iIndex)

Description

Month Text

License

Apache License

Declaration

public static String MonthText(int iIndex) 

Method Source Code

//package com.java2s;

public class Main {
    public static String MonthText(int iIndex) {

        String retValue = "";
        switch (iIndex) {
        case 1://from  w ww  . java 2 s  .  co  m
            retValue = "Enero";
            break;
        case 2:
            retValue = "Febrero";
            break;
        case 3:
            retValue = "Marzo";
            break;
        case 4:
            retValue = "Abril";
            break;
        case 5:
            retValue = "Mayo";
            break;
        case 6:
            retValue = "Junio";
            break;
        case 7:
            retValue = "Julio";
            break;
        case 8:
            retValue = "Agosto";
            break;
        case 9:
            retValue = "Septiembre";
            break;
        case 10:
            retValue = "Octubre";
            break;
        case 11:
            retValue = "Noviembre";
            break;
        case 12:
            retValue = "Diciembre";
            break;
        }
        return retValue;
    }
}

Related

  1. monthDiff(String beforeTime, String endTime)
  2. monthFromDateValue(long x)
  3. monthLength(int year, int month)
  4. monthMillis(int year, int monthNum)
  5. monthStringToInteger(String month)
  6. monthToTerm(int month)
  7. nextMonth(String s)
  8. nextMonthIndex(int current, int step)
  9. normalizeMonth(final int month)