随手记:yyyy-MM-dd HH:ss:mm格式的字符串转日期

SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
	Date eDate = sdf.parse(preEndTime);//preEndTime为yyyy-MM-dd HH:ss:mm格式的字符串
	eDate.setTime(eDate.getTime() + childDurs*60*1000);

猜你喜欢

转载自blog.csdn.net/dx94sg/article/details/80903435