How to convert an Excel date number to a date in Power Automate
Updated 2 November 2026
The expression:
addDays('1899-12-30', int(items('Apply_to_each')?['Due']), 'dd/MM/yyyy')Excel stores dates as a count of days since 30 December 1899. This turns that number back into a date.
Where it goes
Anywhere a date read from Excel looks like 45960.
- In the Power Automate designer, click in the box that needs the value.
- Select the fx (Expression) button that appears next to the dynamic content list.
- Paste the expression and select Add. It should appear as a purple fx chip; if you can see it written out as text, it went in as plain text and won't run.
Example output
30/10/2026 (illustrative; AutomateAlong doesn't run expressions)
The common mistake
formatDateTime(items('Apply_to_each')?['Due'], 'dd/MM/yyyy')Excel sends 46325, not a date, so formatDateTime fails with 'not a valid date'. Either add the days to 30/12/1899, or set DateTime Format to ISO 8601 in List rows' advanced options.
Before you rely on it
- Due is the column name in your table.
Change it for your flow
Step names inside an expression must match your steps exactly, with underscores for spaces: Get_items, not Get items. To adapt it, open it in the Expressions checker, which points at any bracket, quote or name that's wrong and suggests the corrected version. To write a different one from plain English, describe what you need on the same page.
Related
- How to get today's date in dd/MM/yyyy format in Power Automate
- How to show the current UK time (HH:mm) in Power Automate
- How to calculate the number of days between two dates in Power Automate
- How to check if a date is in the past in Power Automate
- How to add days to a date in Power Automate (addDays)
AutomateAlong is independent and isn't affiliated with Microsoft. Microsoft and Power Automate are trademarks of the Microsoft group of companies.