//距离意向购车时间(不小于0)
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
Date nowDate= new Date();
Date beginDate= format.parse(format.format(nowDate));
Date endDate= format.parse(qs.getString(i+1, "PURCHASE_DATE"));
long day=(endDate.getTime()-beginDate.getTime())/(24*60*60*1000);
时间: 2024-10-12 04:45:58