Java SQL Date Create getSqlCurrentDate()

Here you can find the source of getSqlCurrentDate()

Description

Get the current timestamp in SQL timestamp

License

Apache License

Return

the current time in sql timestamp

Declaration

public static java.sql.Timestamp getSqlCurrentDate() 

Method Source Code

//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());
    }
}

Related

  1. getLastDayofMonth(Date date1)
  2. getLastDayOfMonth(java.sql.Date date)
  3. getLastDayOfPreviousMonth(Date date, boolean isFormatDate)
  4. getLastSundayDate()
  5. getLongDate(String strDate)
  6. getSqlCurrentDate()
  7. getSqlDate()
  8. getSQLDate()
  9. getSqlDate()