Java Timestamp from convertToTimestampDate(Date date)

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

Description

convert To Timestamp Date

License

Apache License

Declaration

public static Timestamp convertToTimestampDate(Date date) 

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 convertToTimestampDate(Date date) {
        return new Timestamp(date.getTime());
    }/*  w w w  .j  ava 2  s  .  c o  m*/
}

Related

  1. convertToTimestamp(java.util.Date date)
  2. convertToTimestamp(String dateData)
  3. convertToTimestamp(String dateString, String pattern)
  4. convertToTimestamp(String s)
  5. convertToTimeStamp(Timestamp timestamp, String format, TimeZone timeZone)
  6. convertToTimestampHMS(String dateData)
  7. getFirstTimeOfDay(Calendar calendar)
  8. timestampFromCalendar(Calendar calendar)
  9. timestampFromLong(long t)