Here you can find the source of ResolveMonth(String MonthToResolve)
public static String ResolveMonth(String MonthToResolve)
//package com.java2s; //License from project: Open Source License public class Main { public static String ResolveMonth(String MonthToResolve) { if (MonthToResolve.equals("Jan")) return "01"; if (MonthToResolve.equals("Feb")) return "02"; if (MonthToResolve.equals("Mar")) return "03"; if (MonthToResolve.equals("Apr")) return "04"; if (MonthToResolve.equals("May")) return "05"; if (MonthToResolve.equals("Jun")) return "06"; if (MonthToResolve.equals("Jul")) return "07"; if (MonthToResolve.equals("Aug")) return "08"; if (MonthToResolve.equals("Sep")) return "09"; if (MonthToResolve.equals("Oct")) return "10"; if (MonthToResolve.equals("Nov")) return "11"; if (MonthToResolve.equals("Dec")) return "12"; return ""; }//from www . j av a 2 s.co m }