String字符串格式的日期獲取毫秒數

SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
//startDate爲String格式的日期
long startTime = format.parse(startDate).getTime();
相關文章
相關標籤/搜索