Java Timestamp Convert To toDate(Timestamp timestamp)

Here you can find the source of toDate(Timestamp timestamp)

Description

to Date

License

Open Source License

Declaration

public static Date toDate(Timestamp timestamp) 

Method Source Code


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

import java.util.Date;

public class Main {
    public static Date toDate(Timestamp timestamp) {
        return new Date(timestamp.getTime());
    }//w  w  w.  java  2  s  . com
}

Related

  1. toCalendar(final Timestamp ts)
  2. toCalendar(java.sql.Timestamp stamp)
  3. toCalendar(Timestamp stamp)
  4. toCalendar(Timestamp timestamp)
  5. toDate(java.sql.Timestamp timestamp)
  6. toDateTime(Timestamp value)
  7. toDecimal(Timestamp instant)
  8. toEnglishDateTime(java.sql.Timestamp ts)
  9. toEnglishHours(java.sql.Timestamp ts)