java中将字符串转换为日期格式的几种写法 String examineTime = "2019-03-05"; DateFormat dateFormat = DateFormat.getDateInstance().parse(examineTime)