Here you can find the source of intToMonth(int m)
public static String intToMonth(int m)
//package com.java2s; //License from project: Artistic License public class Main { public static String intToMonth(int m) { switch (m) { case 0:// www. j av a 2 s . co m return "Jan"; case 1: return "Feb"; case 2: return "Mar"; case 3: return "Apr"; case 4: return "May"; case 5: return "Jun"; case 6: return "Jul"; case 7: return "Aug"; case 8: return "Sep"; case 9: return "Oct"; case 10: return "Nov"; case 11: return "Dec"; } return "Unknown Month: " + m; } }