Java SQL Date From toSqlDate(Date dt)

Here you can find the source of toSqlDate(Date dt)

Description

to Sql Date

License

Apache License

Declaration

public static Timestamp toSqlDate(Date dt) 

Method Source Code

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

import java.sql.Timestamp;

import java.util.Date;

public class Main {
    public static Timestamp toSqlDate(Date dt) {
        if (dt == null) {
            return null;
        }/*from w w  w .j  a va 2  s  .c  o m*/
        return new Timestamp(dt.getTime());
    }
}

Related

  1. toDateStr(java.util.Date d)
  2. toSqlDate(Calendar calendar)
  3. toSqlDate(Date date)
  4. toSqlDate(Date date)
  5. toSqlDate(Date date)
  6. toSqlDate(final Date date)
  7. toSqlDate(final String _text, final String _dateFormat)
  8. toSQLDate(java.util.Date date)
  9. toSQLDate(java.util.Date date)