Use date+time as variables for the captureEntirePageScreenshot command file name

I’m attempting to use Kantu UI.Vision to take screen captures of a page URL at regular intervals while passing the current date and time of the capture to the file name (for each screen capture file name like this: dd-mm-yyyy__HH-mm-ss.png )

I don’t have much experience with JS and i can’t get the macro to calculate the current date-time before each capture.

Anyone did it/know how to do it?

You can do that with
executeScript_Sandbox | JS code here | myvariable to return the date/time in your format and then captureScreenshot | ${myvariable}