代码如下:
/** * 将timestamp转换成date * @author hellostoy * @param tt * @return */ public static Date timestampToDate(Timestamp tt){ return new Date(tt.getTime()); }
本文提供了一个简单的方法,用于将Java中的Timestamp对象转换为Date对象。通过使用此方法,开发者可以轻松地在不同日期格式之间进行转换。
代码如下:
/** * 将timestamp转换成date * @author hellostoy * @param tt * @return */ public static Date timestampToDate(Timestamp tt){ return new Date(tt.getTime()); }

被折叠的 条评论
为什么被折叠?