Android examples for java.util:Month
get Short Month Year Display for Calendar
//package com.java2s; 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); }/*from w w w. ja va 2 s .co m*/ }