Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.7
-
None
-
None
-
None
Description
We need to parse String to java.util.Date and are having multiple Date formats.
Snippet for this is
java.util.Date dt = DateUtils.parseDateStrictly(verificationDate.get_value(), Locale.ENGLISH, new String[] { "yyyy-MM-dd'T'HH:mm:ss.SSSSSSSXXX","yyyy-MM-dd'T'HH:mm::ss.SSSSSSS" });
2018-11-13T08:03:41.2860000-06:00 is not being parsed correctly. On troubleshooting, we discovered that 2018-11-13T08:03:41.0000286-06:00 is parsing fine.
How to handle this?