Here you can find the source of getDateTimeString(java.sql.Date dd)
public static String getDateTimeString(java.sql.Date dd)
//package com.java2s; //License from project: Apache License public class Main { public static String getDateTimeString(java.sql.Date dd) { if (dd == null) { return ""; }/*from w w w . jav a2s.c o m*/ String tds = dd.toString(); java.sql.Time tt = new java.sql.Time(dd.getTime()); tds += (" " + tt.toString()); return tds; } }