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

rdbms - what exactly the undo information lives in oracle? -

bash - How do you programmatically add a bats test? -

java - Getting exception in JDBC thin driver -