Code example for DateFormatSymbols

Methods: getWeekdays

0
	public static String getLongDayOfWeekName(Calendar cal) {
		if(isGingerbreadOrLater()) { 
			return cal.getDisplayName(Calendar.DAY_OF_WEEK, Calendar.LONG, Locale.getDefault());
		} 
		else { 
			return dfs.getWeekdays()[cal.get(Calendar.DAY_OF_WEEK)];			
		} 
	} 
 
	@SuppressLint("NewApi") 
	public static String getShortDayOfWeekName(Calendar cal) {
		if(isGingerbreadOrLater()) { 
			return cal.getDisplayName(Calendar.DAY_OF_WEEK, Calendar.SHORT, Locale.getDefault());
		} 
		else { 
			return dfs.getShortWeekdays()[cal.get(Calendar.DAY_OF_WEEK)];			
		} 
	} 
 
	@SuppressLint("NewApi") 
	public static String getShortMonthName(Calendar cal) {