Code example for DateFormatSymbols

Methods: getMonths

0
		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) {
			return false; 
		} 
		return ((cal1.get(Calendar.DAY_OF_YEAR) == cal2.get(Calendar.DAY_OF_YEAR)) && (cal1
				.get(Calendar.YEAR) == cal2.get(Calendar.YEAR)));
	} 
 
	public static boolean equalDays(final Date date1, final Date date2) {
		if (date1 == null || date2 == null) {
			return false; 
		}