jjzjj

parseFormat

全部标签

java.text.ParseException : Unparseable date: "01:19 PM" 异常

我只是尝试解析一个简单的时间!这是我的代码:Strings="01:19PM";Datetime=null;DateFormatparseFormat=newSimpleDateFormat("hh:mmaa");try{time=parseFormat.parse(s);}catch(ParseExceptione){//TODOAuto-generatedcatchblocke.printStackTrace();}我遇到了这个异常:java.text.ParseException:Unparseabledate:"01:19PM"atjava.text.DateFormat.pa