var date_dt = dateAdd(today(), 'day', 0)
//获取19:30的日期参数
var nineteen = dateAdd(date_dt, 'hour', 19)
var nineteen_thirty = dateAdd(nineteen, 'minute', 30)
param['nineteen_thirty'] = formatDate(nineteen_thirty,'yyyy-MM-dd HH:mm:ss')
//获取00:00的日期参数
param['zero'] = formatDate(date_dt,'yyyy-MM-dd HH:mm:ss')
//获取24:00的日期参数
var twenty_four = dateAdd(date_dt,'hour',24)
param['twenty_four'] = formatDate(twenty_four,'yyyy-MM-dd HH:mm:ss')
//当前时间与19:30比较,定义起始日期和结束日期
if(now()>nineteen_thirty){
param['start_time'] = param['nineteen_thirty']
param['end_time'] = param['twenty_four']
}else{
param['start_time'] = param['zero']
param['end_time'] = param['nineteen_thirty']
}
|