Android Date to Timestamp Convert Date2Timestamp(Date d)

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

Description

Date Timestamp

Declaration

public static Timestamp Date2Timestamp(Date d) 

Method Source Code

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

import java.util.Date;

public class Main {
    public static Timestamp Date2Timestamp(Date d) {
        return new Timestamp(d.getTime());
    }/*  w w  w .  j ava2s . c om*/
}

Related

  1. convertToTimeStamp(Date date)
  2. convertToTimeStamp(Date date, boolean showSeconds)
  3. unixTimestampFromDate(final Date date)
  4. getAccurateDate()