Here you can find the source of getSqlCurrentDate()
public static java.sql.Timestamp getSqlCurrentDate()
//package com.java2s; //License from project: Apache License public class Main { /**/*from ww w.j av a 2 s .co m*/ * Get the current timestamp in SQL timestamp * @return the current time in sql timestamp */ public static java.sql.Timestamp getSqlCurrentDate() { java.util.Date today = new java.util.Date(); return new java.sql.Timestamp(today.getTime()); } }