SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date endDate = sdf.parse(elec.getString("endDate")); Date startDate = sdf.parse(elec.getString("startDate"));
String转Date
最新推荐文章于 2024-04-20 19:46:14 发布
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date endDate = sdf.parse(elec.getString("endDate")); Date startDate = sdf.parse(elec.getString("startDate"));