ICode9

精准搜索请尝试: 精确搜索
  • Java 获取三天前时间2022-08-25 09:35:25

    (1)根据new Date().getTime()获取从1970年1月1日0点0分到目前的毫秒数计算三天前的时间:    Date dateBy3Days = new Date(new Date().getTime()-3*24*60*60*1000);   SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");   String threeDayAgo = sdf.format(dateBy3D

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有