Have to give
Start and End date to the API query to get back any data, and would like it to automatically use thodays date as the end datre, and 12 hours before as the start. The format I have to give the date in is like so, '2022-01-01T00:00:00Z'. I imagine I use transformers to make it the current date/time.
let currentDate = new Date();
let endDate = currentDate.toISOString(); //'2023-02-06T13:59:34.883Z'
let startDate = currentDate.toISOString(); //'2023-02-06T01:59:34.883Z'