0
I am trying to write several data in the database (Mysql), but in the data of the date type the following error:
Unable to find setTimestamp(number,string) method. (line 32, file "Code")
The code is:
var data = Utilities.formatDate(base.getRange(i,3).getValue(), "GMT-03:00", "dd-MM-yyyy'T'HH:mm:ss'Z'");
stmt.setTimestamp(3,data);
No need to record timestamp necessarily, any date format is enough, but this format was the last one I tried.