Java Timestamp Convert To convertToDate(Timestamp timestamp)

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

Description

convert To Date

License

Open Source License

Declaration

public static java.util.Date convertToDate(Timestamp timestamp) 

Method Source Code

//package com.java2s;

import java.sql.Timestamp;

public class Main {
    public static java.util.Date convertToDate(Timestamp timestamp) {
        return new java.util.Date(timestamp.getTime());
    }//from ww w . java2s  .  c  om
}

Related

  1. convertTimestampToDDMMMMYYYY(Timestamp dateTime)
  2. convertTimestampToString(Timestamp dateTime, String dateFormat)
  3. convertTimestampToString(Timestamp str)
  4. convertTimestampToStringWithoutTime(final Timestamp ts)
  5. convertToDate(Timestamp aTimeStamp)
  6. convertToEpochMillis(java.sql.Timestamp ts)
  7. convertToISO8601String(java.sql.Timestamp ts)
  8. convertToString(Timestamp dateData, String pattern, Locale locale)
  9. timestamp(Timestamp timestamp)