Java Timestamp Convert To convertDate(Timestamp time)

Here you can find the source of convertDate(Timestamp time)

Description

convert Date

License

Apache License

Declaration

public static Date convertDate(Timestamp time) 

Method Source Code

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

import java.util.Date;
import java.sql.Timestamp;

public class Main {
    public static Date convertDate(Timestamp time) {
        return time == null ? null : new Date(time.getTime());
    }//from  ww w  .j  av a 2  s.  co m
}

Related

  1. ConvertTimestamp(long sec)
  2. convertTimestamp(Timestamp timestamp)
  3. convertTimestampToDate(Timestamp timestamp)
  4. convertTimestampToDDMMMMYYYY(Timestamp dateTime)