Java SQL Date Create getTodaySqlDate()

Here you can find the source of getTodaySqlDate()

Description

get Today Sql Date

License

Open Source License

Declaration

public static java.sql.Date getTodaySqlDate() 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;
import java.util.*;

public class Main {
    private final static SimpleDateFormat sdfTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    public static java.sql.Date getTodaySqlDate() {
        return new java.sql.Date(getToday().getTime());
    }/*  w  w  w.j  a  v a  2 s.c  o  m*/

    public static String getTime() {
        return sdfTime.format(new Date());
    }

    public static Date getToday() {
        return new Date();
    }
}

Related

  1. getSysDate()
  2. getSysdate(String format)
  3. getSysDateGMTToday()
  4. getTodayDate()
  5. getTodayDate()
  6. getTodaySqlDate()