My question is:
In my process, the Cron node checks a web application every 5 minutes. Afterwards, the Function node gets the today’s date from Cron with the following code:
const utcTimeStamp = new Date(); items.json.today = utcTimeStamp; return items;
Example of a result:
Since I prefer another format, the Date&Time node will then get the result mentioned above, “2021-05-13T09:19:22.237Z” and convert it to “13.05.2021 09:19:22” format.
However, I would like to substract 5 minutes from “13.05.2021 09:19:22”.
Is it possible to substract these 5 minutes in the Function node already? How?
Thanks in advance for your support,