Java Timestamp date2Timestamp(Date date)

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

Description

date Timestamp

License

Open Source License

Declaration

public static Timestamp date2Timestamp(Date date) 

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 date2Timestamp(Date date) {
        if (date == null) {
            return null;
        }// www .jav  a2s.  co  m
        return new Timestamp(date.getTime());
    }
}

Related

  1. clone(Timestamp original)
  2. concatDateAndTime(Timestamp date, Time time)
  3. convertTS2HHMM(Timestamp timeStamp)
  4. copyOrCreateTimestampNullsafe(Date date)
  5. createDateTimestamp(java.util.Date date)
  6. date2Timestamp(Date value)
  7. dateAdd(Timestamp t1, Integer i, int type)
  8. dateAndTimeToTimestamp(Date data, Time hora)
  9. dateIntToTimestamp(int dateInt)