I have created this script to calculate the number of days from today, but it returns like 20 decimals. How to round to a whole number?
I was trying to do this using floor()
but I don't understand what the syntax should be like.
Current JSON code I am using:
{
"elmType": "div",
"txtContent": {
"operator": "/",
"operands": [
{
"operator": "-",
"operands": [
"=Number('@now')",
"=Number('[$Date]')"
]
},
86400000
]
}
}