Here you can find the source of getSqlDateDefaultFormat(java.sql.Date date)
public static String getSqlDateDefaultFormat(java.sql.Date date)
//package com.java2s; public class Main { public static String getSqlDateDefaultFormat(java.sql.Date date) { String str = null;//from ww w. j a v a2 s.co m try { if (date != null) str = date.toString(); } catch (Exception e) { } return str; } }