AnsweredAssumed Answered

How to get the current date and time in LISA or Javascript?

Question asked by MeghaR on Mar 14, 2018
Latest reply on Mar 15, 2018 by MeghaR

I tried Date() function in execute script step in LISA. But its throwing an error.

 

 

var currentDate = new Date(),
day = currentDate.getDate(),
month = currentDate.getMonth() + 1,
year = currentDate.getFullYear();
d = day+month+year;
testExec.setStateValue("Result","d");

Outcomes