Java examples for java.util:Month
get Month Short Name
//package com.java2s; public class Main { public static String getMonthShortName(int month) { switch (month) { case 1:/*from ww w .j a v a 2s . c o m*/ return "Jan"; case 2: return "Feb"; case 3: return "Mar"; case 4: return "Apr"; case 5: return "May"; case 6: return "June"; case 7: return "July"; case 8: return "Aug"; case 9: return "Sept"; case 10: return "Oct"; case 11: return "Nov"; case 12: return "Dec"; default: return ""; } } }