Java Date to Timestamp getTimestamp(Date date)

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

Description

get Timestamp

License

Open Source License

Declaration

public static Timestamp getTimestamp(Date date) 

Method Source Code


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

import java.util.*;

public class Main {

    public static Timestamp getTimestamp(Date date) {
        return new Timestamp(date.getTime());
    }//from  w w  w  .j  av  a  2  s. c om
}

Related

  1. getTimestamp(Date date)
  2. getTimestamp(Date date)
  3. getTimestamp(Date date)
  4. getTimestamp(Date date)
  5. getTimestamp(Date date)
  6. getTimestamp(Date date)
  7. getTimeStamp(Date date, String time)
  8. removeTimestamp(Date date)
  9. timestamp(Calendar date)