java将date和String之间的互换
摘要:
1.将数据库获取到的date转换成按格式输出的String String createdate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(rs.getTimestamp("createdate")) String createdate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(rs.getTimestamp("createdate"))2.将String转换成date Timestamp 阅读全文
posted @ 2013-01-18 15:32 小猫咪,请加油 阅读(322) 评论(0) 推荐(0)
浙公网安备 33010602011771号