hello
i have a Node 'function' where i do add some information manualy.
there i have a
let myDatum = "17.06.2021" ; // tt.mm.yyyy
i would like to have the Datum changed (timestamp) to save it in InfluxDB so in Grafan could visualise the date (Datum) with some other values.
but just can't find out how to change the datum
have a nice day
vinc
You can use the Date object
If you have no choice in the Datum format then you can always split it by .
and reverse it & feed it in that way...
Sounds like a job for Google...
https://www.google.com/search?q=convert+day+month+year+to+timestamp+javascript
...and then put the formula into your function node.
EDIT - I was just going through the top hit from Google when I saw that Steve beat me to this... I will go back to my movie
system
Closed
4
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.