Here you can find the source of getDate(Timestamp establishdate)
Parameter | Description |
---|---|
establishdate | the establishdate |
public static Date getDate(Timestamp establishdate)
//package com.java2s; //License from project: Apache License import java.sql.Timestamp; import java.util.Date; public class Main { /**/*from w ww . j a va 2 s .c om*/ * Gets the date. * * @param establishdate the establishdate * @return the date */ public static Date getDate(Timestamp establishdate) { if (establishdate == null) return new Date(); else { return new Date(establishdate.getTime()); } } }