function date1(a){
var date = new Date();
let day=date.getDate();
let month = date.getMonth() + 1;
return `${date.getFullYear()}-${month}-${day} ${a}`
}
dc=new Date();
ds=new Date(date1(flow.get('timestart')));
de=new Date(date1(flow.get('timeend')));
msg.payload=dc > ds && dc < de
return msg;