Hi all,
I have been taking in a date through PowerApps from the Datepicker in the form dd/mm/yyyy.
I have been trying to format it using Compose in Flow to output the form yyyy-MM-dd.
"@formatdatetime(triggerBody()?['Sendapprovalemail_Body'],'yyyy-MM-dd')"
For some reason the days and the months switch around. Its as if it reads 'MM' as 'dd' and 'dd' as 'MM'.
I get the same result each time after changing around the formats several times in both Compose and PowerApps.
eg. Input from PowerApps is 14/06/2017 and output from Compose is 2017-14-06, but it throws an error as its not possible to have MM as 14. It should be outputting 2017-06-14.
Any help on trying to resolve this would be great, thanks.