java代码工具--Date格式化

来源:互联网 发布:pc mac os x 编辑:程序博客网 时间:2024/06/06 09:32

格式化时间:

SimpleDateFormat sdf =new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); String time="2013-11-29 14:37:20"; Timestamp time1=new Timestamp(sdf.parse(time).getTime());
0 0