code: public static String getDateTime(Date date, Format format) {
  
          StringBuffer buf = new StringBuffer();
          buf.append(getDate(date, format));
          buf.append(" ");
          buf.append(getTime(date, format));
          return buf.toString();
      }
docs: Returns a formated date and time String from a Date value,
  the formatting based on the provided options.<p>
  
  @param date the Date object to format as String
  @param format the format to use, see {@link Format} for possible values
  @return the formatted date