Java SQL Date Create getCurSQLDate()

Here you can find the source of getCurSQLDate()

Description

Get current date in form of java.sql.Date.

License

Apache License

Return

java.sql.Date object of current date.

Declaration

public static java.sql.Date getCurSQLDate() 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Date;

public class Main {
    /**//  w  ww.  j a  v a  2s  .  c  o  m
     * Get current date in form of java.sql.Date.
     * 
     * @return java.sql.Date object of current date.
     */
    public static java.sql.Date getCurSQLDate() {
        return new java.sql.Date(new Date().getTime());
    }
}

Related

  1. getCurrentDateString()
  2. getCurrentDateWithMinutePrecision()
  3. getCurrentDayStartDate(Date date)
  4. getCurrentDBDate()
  5. getCurrentSQLDate()
  6. getCurSQLDateInString(String pstrDateFormat)
  7. getDataMaior(java.sql.Date data1, java.sql.Date data2)
  8. getDateAfter(Date date, Integer after)
  9. getDateAfter(Date date, long offset)