字符串与时间格式转换

String time = "2012-12-12 12:12";
Date t = new Date(time);
var mill = t.getTime();

原文地址:https://www.cnblogs.com/javadongx/p/6952923.html