获取当前系统前一天日期 public static Date getNextDay(Date date) {Calendar calendar = Calendar.getInstance();calendar.setTime(date);calendar.add(Calendar.DAY_OF_MONTH, -1);date = calendar.getTime();return d
今天的所有数据:select * from 表名 where DateDiff(day,datetime字段,getdate())=0昨天的所有数据:select * from 表名 where DateDiff(day,datetime字段,getdate())=17天内的所有数据:select * from 表名 where DateDiff(day,datetime字段,getdate())
function getDayTime () {let date = new Date()let times = date.getTime()let hour = date.getHours()let minute = date.getMinutes()let second = date.getSeconds()let dayTime = times - hour * 3600 * 1000 -