Java SQL Date From convertSqlTime(Date date)

Here you can find the source of convertSqlTime(Date date)

Description

convert Sql Time

License

Open Source License

Declaration

public static java.sql.Timestamp convertSqlTime(Date date) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.Date;

public class Main {

    public static java.sql.Timestamp convertSqlTime(Date date) {
        java.sql.Timestamp timestamp = new java.sql.Timestamp(date.getTime());
        return timestamp;
    }/*from  w w w . ja va  2 s  . co  m*/
}

Related

  1. convertDateToTime(Date date, boolean am)
  2. convertDateToTime(final Date date)
  3. convertIntoDuration(Long time)
  4. convertJavaTimeToJavaSql(Object x)
  5. convertNanoToTime(long nanos)
  6. convertTime(long time)
  7. convertTime(String time)
  8. convertTime2String(long time)
  9. convertTime2TS(long time)