Inconsistent date parsing using SimpleDateFormat

后端 未结 4 1120
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-17 20:14

I\'m really scratching my head on this one. I\'ve been using SimpleDateFormats with no troubles for a while, but now, using a SimpleDateFormat to parse dates is

4条回答
  •  北海茫月
    2020-12-17 20:46

    The hour should be specified as HH instead of hh. Check out the section on Date and Time patterns in http://java.sun.com/javase/6/docs/api/java/text/SimpleDateFormat.html

提交回复
热议问题