PDave PDave - 1 year ago 76
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'");

Answer Source

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


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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download