I try to get today date + time(00:00:00)
So I do it like this:
const startDate = DateTime.fromISO(params.start)
.startOf('day')
.toFormat('yyyy-LL-dd HH:mm:ss');
But If I do a console.log()
:
console.log('startData', startDate);
I get an error:
line-chart.service.ts:22 startData Invalid DateTime
So what I have to change?
So I want it to use in here:
return this.sensorNodeService.cameraDataInInterval(
16,
startDate,
'2021-01-20 23:59:59',
'1'
);