I try to get date values from my googlesheets thru zapier to Wix via backend function. The function itself works fine for Numbers and text, but I´m not sure how to change it to value date.
So basically the red underlined needs to be changed automatically via backend code into the green underlined one.
FYI: I receive the data via data forms Wix automation thru zapier to my googlesheets. Basically my members are filling out a form and clicking the send button. Afterwards a new spreadsheet in googlesheets is takingthis data, adding some new columns and sending it back via Zapier to my database in Wix via backend_function.
So basically the date format I receive in googlesheets is from Wix data forms and I just want to play it back to my database in the correct format.
When you export the date from you database, it converts into ISO date format (or other string formats).
In order to convert it into Date again you should use the
new Date(dateString)
Maybe the string format in your case is not supported.
You can try installing NPM like moment which lets you do a lot of things with time&dates including formatting.