Date text not recognised
Seen when a run fails · Updated 8 November 2026
The message
In function 'formatDateTime', the value provided for date time string '30/10/2026' was not valid. The datetime string must match ISO 8601 format.
What it means
The date arrived as UK text (dd/MM/yyyy) or another non-standard format. Power Automate only reads ISO dates (2026-10-30 or 2026-10-30T09:00:00Z) unless you tell it the format.
How to fix it
- If the source is a form or Excel, read the date the way it's stored and convert once:
parseDateTime(<value>, 'en-GB', 'dd/MM/yyyy'). - Then format it for people at the end:
formatDateTime(parseDateTime(<value>, 'en-GB', 'dd/MM/yyyy'), 'dd/MM/yyyy'). - Excel dates often arrive as a serial number (46325). Use
addDays('1899-12-30', int(<value>), 'dd/MM/yyyy'); 46325, for example, is 30/10/2026.
Not quite your message? Paste the whole thing into the Flow Doctor. It reads the step, property and expression out of your exact wording and, for the stubborn ones, the AI reads the flow it happened in.
How to find the full error in Power Automate
- Open the flow and look at 28-day run history.
- Select the failed run (red cross), then the step with the red cross.
- The error is in that step's box; some are under Show raw outputs. Copy the whole thing, including the code at the start.
Other Expressions errors
- Property selection on a text value
- Property doesn't exist
- A function was given an empty value
- Text can't be turned into a number
- Expression refers to a step that doesn't exist
- Apply to each was given something that isn't a list
- Create HTML table / Select given something that isn't a list
- Expression won't parse
- substring() asked for more text than there is
- Reading a property from a list
- A required box was empty in this run
AutomateAlong is independent and isn't affiliated with Microsoft. Microsoft and Power Automate are trademarks of the Microsoft group of companies.