public void setDate(final Date date) {
		if (date == null) {
			setPartialDate(null, null, null);
		} else {
			Calendar cal = Calendar.getInstance();
			cal.setTime(date);
			Integer year = cal.get(Calendar.YEAR);
			Integer month = cal.get(Calendar.MONTH) + 1;
			Integer day = cal.get(Calendar.DAY_OF_MONTH);
			setPartialDate(day, month, year);
		}
	}
public void setDate ( final Date date ) { if ( date == null ) { setPartialDate ( null , null , null ) ; } else { Calendar cal = Calendar . getInstance ( ) ; cal . setTime ( date ) ; Integer year = cal . get ( Calendar . YEAR ) ; Integer month = cal . get ( Calendar . MONTH ) + 1 ; Integer day = cal . get ( Calendar . DAY_OF_MONTH ) ; setPartialDate ( day , month , year ) ; } }
Set the WPartialDateField with the given java date.

@param date the date