PDave PDave - 8 months ago 41
Java Question

Date format and the hour is always 12:00:00.000

I got the problem with date format

, always when I parse some date the time is set to

This is my date formater:

DateFormat xmlDateFormatWithMs = new SimpleDateFormat("yyyy-MM-dd'T'hh:mm:ss.SSS'Z'");


You seem to need 24-hours hour format. You need:


With capital HH to specify you need a 24-hours format.