日期格式转为时间戳:
try {
SimpleDateFormat sdf = new SimpleDateFormat(“yyyy-MM-dd”);
couponEndTime =sdf.parse(response2.getData().getCouponEndTime()).getTime();
}catch (Exception e){
e.printStackTrace()
}
如果加上+86400000的话就到了第二天凌晨
日期转时间戳获得第二天凌晨的时间戳
最新推荐文章于 2023-01-16 17:09:17 发布