Here you can find the source of convertToAlphaMonth(final int importIntMonth)
Parameter | Description |
---|---|
importIntMonth | Numeric month (e.g., 1) |
public static String convertToAlphaMonth(final int importIntMonth)
//package com.java2s; /*//from w w w . j a v a 2s . c o m * ==================================================================== * Copyright (C) 1997-2008 by Naijatek.com * * All copyright notices regarding MyAlumni MUST remain * intact in the scripts and in the outputted HTML. * The "powered by" text/logo with a link back to * http://www.naijatek.com in * the footer of the pages MUST remain visible when the pages * are viewed on the internet or intranet. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Support can be obtained from support forums at: * http://www.naijatek.com/myalumni/forum * * Correspondence and Marketing Questions can be sent to: * info at naijatek com * * <p>Title: MyAlumni </p> * <p>Description: This system helps keep alive the line of communications between alumni/alumnus</p> * <p>Copyright: Copyright (c) 1997-2008</p> * <p>Company: Naijatek Solutions (http://www.naijatek.com)</p> * @author Folashade Adeyosoye (shardayyy@naijatek.com) * @version 1.0 */ public class Main { /** * Convert a numeric month into an alphabet month. * * @param importIntMonth Numeric month (e.g., 1) * @return String */ public static String convertToAlphaMonth(final int importIntMonth) { String importStrMonth = null; switch (importIntMonth) { case 1: importStrMonth = "January"; break; case 2: importStrMonth = "February"; break; case 3: importStrMonth = "March"; break; case 4: importStrMonth = "April"; break; case 5: importStrMonth = "May"; break; case 6: importStrMonth = "June"; break; case 7: importStrMonth = "July"; break; case 8: importStrMonth = "August"; break; case 9: importStrMonth = "September"; break; case 10: importStrMonth = "October"; break; case 11: importStrMonth = "November"; break; case 12: importStrMonth = "December"; break; default: importStrMonth = ""; } return importStrMonth; } }