value to timestamp

i have a Node 'function' where i do add some information manualy.

there i have a
let myDatum = "17.06.2021" ; //

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

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...

...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 :stuck_out_tongue:

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.