如何将oracle.sql.TIMESTAMP 转换为 java date
摘要:
private String getDate(Object value) { Timestamp timestamp = null; try { timestamp = (Timestamp) value; } catch (Exception e) { timestamp = getOracleTimestamp(value); } if(timestamp!=null) return (new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.S")) .format(timestamp); else return null; } /** * 阅读全文
posted @ 2014-01-05 16:34 passer1991 阅读(2514) 评论(0) 推荐(0) 编辑