`
showtime520
  • 浏览: 87786 次
  • 性别: Icon_minigender_1
  • 来自: 湖南
社区版块
存档分类
最新评论

simpledateformat格式的错误认识

阅读更多
//这样写小时是24小时制
SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
//12小时制
SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");


转换格式是区分大小写的
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics