Java Month Convert ConvertNumToMonth(int mesEntrada)

Here you can find the source of ConvertNumToMonth(int mesEntrada)

Description

Convert Num To Month

License

Open Source License

Declaration

public static String ConvertNumToMonth(int mesEntrada) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String ConvertNumToMonth(int mesEntrada) {
        String mesSalida = "";
        switch (mesEntrada) {
        case 1:/*from   w w w.  j  a v a 2 s  .  co m*/
            mesSalida = "Enero";
            break;
        case 2:
            mesSalida = "Febrero";
            break;
        case 3:
            mesSalida = "Marzo";
            break;
        case 4:
            mesSalida = "Abril";
            break;
        case 5:
            mesSalida = "Mayo";
            break;
        case 6:
            mesSalida = "Junio";
            break;
        case 7:
            mesSalida = "Julio";
            break;
        case 8:
            mesSalida = "Agosto";
            break;
        case 9:
            mesSalida = "Septiembre";
            break;
        case 10:
            mesSalida = "Octubre";
            break;
        case 11:
            mesSalida = "Noviembre";
            break;
        case 12:
            mesSalida = "Diciembre";
            break;

        default:
            mesSalida = "";
            break;
        }
        return mesSalida;
    }
}

Related

  1. convertDecimalToCharMonth(int month)
  2. convertMonth(String monthSlashYear)
  3. convertMonth(String value)
  4. convertMonthFromNumber(int month)
  5. convertMonthStringToInt(String monthString)
  6. convertToAlphaMonth(final int importIntMonth)
  7. convertToMonth_long(int month)
  8. convertToNumericMonth(String importStrMonth)
  9. createFutureDate(int days, int months)