
Announcements
Hello everyone,
I'm trying to convert thedate 21/02/2022 to 2022/02/21, with this code:
Hi @JaRJaR55,
First of all it looks like that there is a space character just before the month. Is that a small typo?
It also looks like your data is of type string. You can rearrange it a bit to make it usable for a formatdatetime function.
As a workaround you could use a couple of substring functions to get it in a right format:
formatDateTime(concat(substring(outputs('ComponiData'),3,2),'/',substring(outputs('ComponiData'),0,2),'/',substring(outputs('ComponiData'),6)),'yyyy-MM-dd')