SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
sdf.format(str);//str是時間字符串
在IDEA的內(nèi),在沒有拋出
throws ParseException
的時候就會報unhandled exception :java.text.parseException的錯誤
SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
sdf.format(str);//str是時間字符串
在IDEA的內(nèi),在沒有拋出
throws ParseException
的時候就會報unhandled exception :java.text.parseException的錯誤