code: public static String getDateTime(Date date, int format, Locale locale) {
  
          DateFormat df = DateFormat.getDateInstance(format, locale);
          DateFormat tf = DateFormat.getTimeInstance(format, locale);
          StringBuffer buf = new StringBuffer();
          buf.append(df.format(date));
          buf.append(" ");
          buf.append(tf.format(date));
          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 DateFormat} for possible values
  @param locale the locale to use
  @return the formatted date