Java tutorial
//package com.java2s; //License from project: Open Source License import java.util.Calendar; import java.util.Locale; public class Main { public static String getShortMonthYearDisplay(Calendar cal) { return cal.getDisplayName(Calendar.MONTH, Calendar.SHORT, Locale.US) + " " + cal.get(Calendar.YEAR); } }