Java Timestamp Create toSqlTimestamp(Date d)

Here you can find the source of toSqlTimestamp(Date d)

Description

to Sql Timestamp

License

Open Source License

Declaration

public static Timestamp toSqlTimestamp(Date d) 

Method Source Code


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

import java.sql.Timestamp;

import java.util.Date;

public class Main {
    public static Timestamp toSqlTimestamp(Date d) {
        return new Timestamp(d.getTime());
    }//w w  w .  j a  v a  2s .  com
}

Related

  1. timestampStartOfDay(long time)
  2. timestampStringToUnixDate(String s)
  3. toOracleTimestamp(String stringDate, int intFlag)
  4. toSQLTime(Instant timestamp)
  5. toSqlTime(Timestamp timestamp)
  6. toSqlTimeStamp(Date d)
  7. toSQLTimestamp(Date date)
  8. toSQLTimestamp(DateTime dt)
  9. toSqlTimestamp(java.util.Date date)