code: @SuppressWarnings("deprecation")
      public static Date getDateWithTime(Date date, String time) {
  
          Date result;
          try {
              Date timeAsDate = Z_TIME_FORMAT.parse(time);
              result = new Date(date.getYear(), date.getMonth(), date.getDate());
              result.setHours(timeAsDate.getHours());
              result.setMinutes(timeAsDate.getMinutes());
              result.setSeconds(timeAsDate.getSeconds());
          } catch (Exception e) {
              result = null;
          }
          return result;
      }
docs: Merges a given Date object with a given time String.<p>
  
  Returns a <code>null</code> if the given time format coudn't be parsed.<p>
  
  The expected time String should include the am pm information if the time format is in 12 hour presentation.<p>
  
  @param date the given Date object which time has to be set
  @param time the given time String which should be inserted into the Date Object
  
  @return the merged date Object