Here you can find the source of getMonthNumberString(String sMonth)
public static String getMonthNumberString(String sMonth)
//package com.java2s; //License from project: Apache License public class Main { public static String getMonthNumberString(String sMonth) { sMonth = sMonth.toUpperCase(); // ToUpper(); if (sMonth.startsWith("JAN")) return "01"; if (sMonth.startsWith("FEB")) return "02"; if (sMonth.startsWith("MAR")) return "03"; if (sMonth.startsWith("APR")) return "04"; if (sMonth.startsWith("MAY")) return "05"; if (sMonth.startsWith("JUN")) return "06"; if (sMonth.startsWith("JUL")) return "07"; if (sMonth.startsWith("AUG")) return "08"; if (sMonth.startsWith("SEP")) return "09"; if (sMonth.startsWith("OCT")) return "10"; if (sMonth.startsWith("NOV")) return "11"; if (sMonth.startsWith("DEC")) return "12"; return null; }//from w w w .j ava 2 s . co m }