Skip to main content
Jul 15, 2019 12:02 PM UTC
Solved

Expression for Timestamp doesn't work in 8.4

I need a Timestamp for some of my widgets but the expression does not work anymore in the updated version 8.4.

 

How can i evaluate the datetime in a expression ? Or do i need a service now ? 

 

ErrHudAnswer
Jul 15, 2019 3:22 PM UTC

Try this instead : 

"Output = new Date();"

and change the Output type to string.

4 replies

Jul 15, 2019 2:49 PM UTC

The expression you show in the attached PNG file is:  "new Date();"

try changing the expression to "result = new Date();"

ninjaAuthor
Jul 15, 2019 3:15 PM UTC

Unfortunately that does'nt work either.

The Output in the Widget is "not a date..."

ErrHudAnswer
Jul 15, 2019 3:22 PM UTC

Try this instead : 

"Output = new Date();"

and change the Output type to string.

ninjaAuthor
Jul 16, 2019 7:10 AM UTC

Output type string does work, thanks!

datetime would be a little bit nicer, but string works for now!