Java Timestamp Convert To toJavaDate(Timestamp dt)

Here you can find the source of toJavaDate(Timestamp dt)

Description

to Java Date

License

Apache License

Declaration

public static Date toJavaDate(Timestamp dt) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.sql.Timestamp;

import java.util.Date;

public class Main {
    public static Date toJavaDate(Timestamp dt) {
        if (dt == null) {
            return null;
        }/* www . ja  v  a  2s  .  co  m*/
        return new Date(dt.getTime());
    }
}

Related

  1. toEnglishHours(java.sql.Timestamp ts)
  2. toEPICSTime(java.sql.Timestamp timestamp)
  3. toFormatedString(final Timestamp ts, final String timeZoneId)
  4. toGmtTimestampString(Timestamp timestamp)
  5. toInstant(final Timestamp timestamp)
  6. toLocalDateTime(Timestamp timestamp)
  7. toMediaWikiString(Timestamp timestamp)