Java Timestamp Convert To timestamp2Date(java.sql.Timestamp t)

Here you can find the source of timestamp2Date(java.sql.Timestamp t)

Description

timestamp Date

License

Open Source License

Declaration

public static java.util.Date timestamp2Date(java.sql.Timestamp t) 

Method Source Code

//package com.java2s;

public class Main {
    public static java.util.Date timestamp2Date(java.sql.Timestamp t) {
        return new java.util.Date(t.getTime());
    }// w  w w  .  j  av a 2  s  .  co  m
}

Related

  1. convertToISO8601String(java.sql.Timestamp ts)
  2. convertToString(Timestamp dateData, String pattern, Locale locale)
  3. timestamp(Timestamp timestamp)
  4. Timestamp2Arch(Timestamp ts)
  5. timestamp2Calendar(Timestamp ts)
  6. timestamp2Internal(java.sql.Timestamp t)
  7. timestamp2ToTimestamp(long seconds, int fraction, int width)
  8. timestampSqlToDate(Timestamp timestamp)
  9. TimestampToBigint(String timestamp)