SimpleDateFormat的java的日期格式
2013-11-27 21:21
483 查看
SimpleDateFormat sft=new SimpleDateFormat("yyyy年MM月dd日HH时mm分ss秒 E");
Timestamp date1=new Timestamp(System.currentTimeMillis());
System.out.println(date1);
SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH时mm分ss秒");
Timestamp date2=new Timestamp(sdf.parse("2014年12月24日00时00分01秒").getTime());
Timestamp date3=new Timestamp(sdf.parse("2014年12月24日00时00分02秒").getTime());
System.out.println(date2);
System.out.println(date3);
Timestamp date1=new Timestamp(System.currentTimeMillis());
System.out.println(date1);
SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH时mm分ss秒");
Timestamp date2=new Timestamp(sdf.parse("2014年12月24日00时00分01秒").getTime());
Timestamp date3=new Timestamp(sdf.parse("2014年12月24日00时00分02秒").getTime());
System.out.println(date2);
System.out.println(date3);
相关文章推荐
- java日期格式大全 format SimpleDateFormat
- java日期格式大全 format SimpleDateFormat
- Java日期转换SimpleDateFormat格式大全
- java时间格式SimpleDateFormat及日期格式简码
- java日期格式大全 format SimpleDateFormat
- java日期格式大全 format SimpleDateFormat
- Java日期转换 SimpleDateFormat格式(年月日时分秒)
- Java日期转换SimpleDateFormat格式大全 和 判断是否为合法的日期时间字符串?
- java日期格式大全 format SimpleDateFormat
- JAVA日期格式问题 SimpleDateFormat方法
- Java日期转换SimpleDateFormat格式大全
- java日期格式大全 format SimpleDateFormat
- Java日期转换SimpleDateFormat格式大全
- Java日期转换SimpleDateFormat格式大全
- java中设置日期格式的方式一般用SimpleDateFormat("YY-MM-dd")就可以了,但为什么有的 SimpleDateFormat("YY-MM-dd",locale.getDefau
- java日期格式大全 format SimpleDateFormat
- java日期格式大全 format SimpleDateFormat
- java 日期格式SimpleDateFormat例子
- Java中SimpleDateFormat用法详解-日期时间格式设置
- java日期SimpleDateFormat格式