标签:string cep string类 date util exception for rac format
String birthday ="2017-02-22"; SimpleDateFormat sdf = new SimpleDateFormat(("yyyy-MM-dd")); java.util.Date date = null; try { date = sdf.parse(birthday); } catch (ParseException e) { e.printStackTrace(); } System.out.println(new java.sql.Date(date.getTime()));
java中String类型转换为yyyy-MM-dd的Date类型
标签:string cep string类 date util exception for rac format
原文地址:http://www.cnblogs.com/xiami-mj/p/6814918.html