Code example for Date

Methods: getDaygetMonthgetYear

0
			} 
		} 
	} 
 
	private static boolean compareNotNullDate(Date d1, Date d2) {
		if ((d1.getDay() == d2.getDay())
				&& (d1.getYear() == d2.getDay())
				&& (d1.getMonth() == d2.getDay())) {
			return true; 
		} else { 
			return false; 
		} 
	} 
 
	public static boolean isBusinessDay(Date date) {
		Calendar c = GregorianCalendar.getInstance();
		c.setTime(date);
		// WTF !!!?! 
		int dateDayOfWeak = c.get(Calendar.DAY_OF_WEEK);
		return !(dateDayOfWeak == Calendar.SATURDAY || dateDayOfWeak == Calendar.SUNDAY);
	}