Code example for DateFormatSymbols

Methods: getMonths

0
	public static String getLongMonthName(Calendar cal) {
		if(isGingerbreadOrLater()) { 
			return cal.getDisplayName(Calendar.MONTH, Calendar.LONG, Locale.getDefault());
		} 
		else { 
			return dfs.getMonths()[cal.get(Calendar.MONTH)];			
		} 
	} 
 
 
	@SuppressLint("NewApi") 
	public static String getLongMonthNameAndYear(Calendar cal) {
		if(isGingerbreadOrLater()) { 
			return cal.getDisplayName(Calendar.MONTH, Calendar.LONG, Locale.getDefault());
		} 
		else { 
			return dfs.getMonths()[cal.get(Calendar.MONTH)];			
		} 
	} 
 
    public static String getMonthAndYearString(Calendar cal) {