Trying to use executeScript to record time in CSV - SOLVED

I used this snippet from here under “get current time”

new Date().getHours()+" : " + new Date().getMinutes() + " : " + new Date().getSeconds()

CSV is blank where the TIME should be. Other data makes it to the CSV but not this time script.

It’s working now with this:

var d= new Date(); return d.getHours()+“:”+d.getMinutes()+“:”+d.getSeconds()

1 Like

can use this
return new Date().getHours()+" : " + new Date().getMinutes() + " : " + new Date().getSeconds();

1 Like