java - Date format and the hour is always 12:00:00.000 -
this question has answer here:
i got problem date format yyyy-mm-dd't'hh:mm:ss.sss'z', when parse date time set 12:00:00.000.
this date formater:
dateformat xmldateformatwithms = new simpledateformat("yyyy-mm-dd't'hh:mm:ss.sss'z'");
you seem need 24-hours hour format. need:
"yyyy-mm-dd't'hh:mm:ss.sss'z'" with capital hh specify need 24-hours format.
Comments
Post a Comment