/**
* 将timestamp转换成date
* @author hellostoy
* @param tt
* @return
*/
public static Date timestampToDate(Timestamp tt){
return new Date(tt.getTime());
}
处理TimeStamp类型的时间格式的时候可以数据库SQL语句处理,或者在后台 JAVA代码里面处理日期格式,或者在jsp页面处理,用 fmt:
eg: to_date(to_char(update_time, 'yyyy-mm-dd HH24:mi:ss'),
'yyyy-mm-dd HH24:mi:ss') ,
* 将timestamp转换成date
* @author hellostoy
* @param tt
* @return
*/
public static Date timestampToDate(Timestamp tt){
return new Date(tt.getTime());
}
处理TimeStamp类型的时间格式的时候可以数据库SQL语句处理,或者在后台 JAVA代码里面处理日期格式,或者在jsp页面处理,用 fmt:
eg: to_date(to_char(update_time, 'yyyy-mm-dd HH24:mi:ss'),
'yyyy-mm-dd HH24:mi:ss') ,