Java Timestamp Field getSQLTimeStampForDate(Date date)

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

Description

get SQL Time Stamp For Date

License

Open Source License

Declaration

public static Timestamp getSQLTimeStampForDate(Date date) 

Method Source Code

//package com.java2s;
import java.sql.Timestamp;

import java.util.Date;

public class Main {
    public static Timestamp getSQLTimeStampForDate(Date date) {

        if (date == null)
            return null;

        return new Timestamp(date.getTime());
    }/*  w ww .  java  2  s . c o m*/
}

Related

  1. getSafeLong(final Timestamp d, final long i)
  2. getSeconds(Timestamp timeStamp)
  3. getServerToUserDateString(TimeZone timeZone, int dateFormat, java.sql.Timestamp date)
  4. getSqlTimeStamp()
  5. getSqlTimeStamp(java.util.Date date)
  6. getSqlTimestampFromMicrosSinceEpoch( long timestamp)
  7. getSqlTimestampFromShortDate(String date)
  8. getStamp(Timestamp timestamp)
  9. getStringToTimestamp(String str)