Hi,
Can anyone help on how to write the expression in powerautomate.
I have a date field in an excel file uploaded in SharePoint.
The supplier of the file sometimes sends the date data in numerical format.
For example 45368 is 17/03/2024 (Australian Format).
How do I write this to correct the value if not in the right format?
I have tried this and it didn't work.
if(equals(item()?['MyOwnDate'], string(parseDateTime(item()?['MyOwnDate'], 'en-AU', 'd/MM/yyyy'))),
formatDateTime(convertTimeZone(parseDateTime(item()?['MyOwnDate'], 'en-AU', 'd/MM/yyyy'), 'UTC', 'AUS Eastern Standard Time'), 'yyyy-MM-dd'),
formatDateTime(convertTimeZone(parseDateTime(item()?['MyOwnDate'], 'en-AU'), 'UTC', 'AUS Eastern Standard Time'), 'yyyy-MM-dd')
)
Thank you