code: public static long applyTimeToDate(Date date, Date time) throws IntraceException {
  		
  		Calendar dateCal = new GregorianCalendar();
  		dateCal.setTime(date);
  		Calendar timeCal = new GregorianCalendar();
  		dateCal.setTime(time);
  		
  		dateCal.set(Calendar.HOUR_OF_DAY, timeCal.get(Calendar.HOUR_OF_DAY )); // 24 hour clock
  		dateCal.set(Calendar.MINUTE, timeCal.get(Calendar.MINUTE ));
  		
  		dateCal.set(Calendar.SECOND, timeCal.get(Calendar.SECOND));
  		dateCal.set(Calendar.MILLISECOND, timeCal.get(Calendar.MILLISECOND));	
  		
  		
  		return dateCal.getTimeInMillis();
  	}
docs: set the give time properties (hour/minute/sec/milli) onto the give data object.
  @param date
  @param time
  @return
  @throws IntraceException