Hello! I’m trying to compare dates but I’m having problems with the format of the Losant date. Is there a way to convert it to ISO or another way to compare it?
Thanks
Hello! I’m trying to compare dates but I’m having problems with the format of the Losant date. Is there a way to convert it to ISO or another way to compare it?
Thanks
Have you tried the {{formatDate}}
helper? From our documentation:
{{formatDate val formatStr}}
: Casts the given value as a date, and then formats it using theformatStr
parameter (default ‘L LTS’). When used in a dashboard, this will use the current browser locale when formatting.
If that does not work, you can also try the Date/Time Node to convert your date to a comparable format.
If those fail, you could try a Function Node, though that requires a working knowledge of JavaScript to utilize.