
Anonymous Community User asked a question.
Date calculation error
With the following code I would like to check how long ago a date was and get a text "a year ago" (in German "vor einem Jahr") as an output: var zeit = moment(moment(@All of Date.toString()).format("DD.MM.YYYY")).lang('de').fromNow()var cat = @All of Statuscat == "Aktiv" ? zeit : 0 Yet, I get the error message: Invalid value "vor einem Jahr" (string): must be number How can I fix this? I already tried setting up a new calculation field, but always get the same error message...