Code example for DateFormatSymbols

Methods: getWeekdays

0
 
	private CalendarUtil() { 
	} 
 
	public static String getDayOfWeekName(final int dayNum) {
		String[] dayOfWeekNames = DATE_FORMAT_SYMBOLS.getWeekdays();
		return dayOfWeekNames[dayNum];
	} 
 
	public static String getShortDayOfWeekName(final int dayNum) {
		String[] dayOfWeekNames = DATE_FORMAT_SYMBOLS.getShortWeekdays();
		return dayOfWeekNames[dayNum];
	} 
 
	public static String getMonthName(final int monthNum) {
		String[] monthNames = DATE_FORMAT_SYMBOLS.getMonths();
		return monthNames[monthNum];
	} 
 
	public static boolean equalDays(final Calendar cal1, final Calendar cal2) {
		if (cal1 == null || cal2 == null) {