String字符串格式的日期获取毫秒数

SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
//startDate为String格式的日期
long startTime = format.parse(startDate).getTime();



你可能感兴趣的:(String字符串格式的日期获取毫秒数)