Need help with Function node to SQL Database


I would also like to send a time stamp to the SQL database.

Can you share your NR flow as it looks as if you have an error in your function node?
The schema for your MySQL dB would also be useful to see.

What do you mean by a timestamp?
The simplest way to record when a record was created is to have a datetime field with a default value of now().
That way your Node-red code does not need to handle it at all.