String nowDate = ApDateTime.getNowDateTime("yyyyMMdd");
String yesterdayStr = ApDateTime.getDateDiff_ForDay("yyyy-MM-dd", nowDate, -1); //strDate 开始日期(格式为yyyyMMDD)
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
Date startDate = sdf.parse(yesterdayStr +" 00:00:00");
Date endDate = sdf.parse(yesterdayStr +" 23:59:59"));
获取指定某一天的00:00—23:59
最新推荐文章于 2024-08-23 10:48:16 发布