Arcade dateDiff no work in expression date ( DASBOARD )

322
2
06-23-2023 06:48 PM
MarceloCatalão
New Contributor II

very good evening, I'm trying to put the following code:


var endDate = Date('12/31/2023','MM/DD/YYYY')
var startDate = Today()
var age = DateDiff(endDate, startDate,'days')

I want it to return the number of days in an indicator

but when testing the value it presents me is null

is there any way to get around this problem?

thank you very much

0 Kudos
2 Replies
DanPatterson
MVP Esteemed Contributor
0 Kudos
KenBuja
MVP Esteemed Contributor

It doesn't understand which value you're wanting to return. If you add this, does it return the expected value?

return age;

 

0 Kudos