Save non-ISO date in DB

Wappler: 5.1.0
Server: NodeJS
DB: PostgreSQL

Hello Wapplers,

From web-scrapping I’m receiving date in non-ISO format: ddd = 13.09.2022
Date in this format cannot be save in DB because it’s not in ISO format.
So I decided to modify value upon inserting: ddd.split('.')[2]+'.'+ddd.split('.')[1]+'.'+ddd.split('.')[0]

While searching I see many mentioning .toDate() transform but I receive an error "message": "Parser Error: Formatter \"toDate\" does not exist, expression {{ddd.toDate()}}",

And my question: is there more “Wappler way” to convert non-ISO date to ISO-date?

Community Page
Last updated: