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

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -