Here you can find the source of getUtilDate(java.sql.Timestamp time)
Parameter | Description |
---|---|
time | the timestamp to concert |
public static java.util.Date getUtilDate(java.sql.Timestamp time)
//package com.java2s; //License from project: Apache License public class Main { /**// w ww . ja va 2 s . co m * Convert SQL timestamp to Java Date * @param time the timestamp to concert * @return the time in util date */ public static java.util.Date getUtilDate(java.sql.Timestamp time) { if (time != null) return new java.util.Date(time.getTime()); else return null; } }