Java tutorial
//package com.java2s; import java.util.Date; public class Main { private static final String shortMonth[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; public static String getShortMonth(Date date) { return shortMonth[date.getMonth()]; } }