我正在执行以下代码给我
"Exception in thread "main" org.joda.time.IllegalFieldValueException: Cannot parse "12/17/2017 23:10": Value 23 for clockhourOfHalfday must be in the range [1,12]"
DateTimeFormatter dt = DateTimeFormat.forPattern("MM/dd/yyyy hh:mm");
System.out.println(dt.parseDateTime("12/17/2017 23:10"));
Run Code Online (Sandbox Code Playgroud)
如果我将解析"12/17/2017 02:10"然后它成功执行.
所以基本上,我需要解析具有24小时时钟格式的时间.
提前致谢.