Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Explanation convert Date from Excel in Iso Format

(0) ShareShare
ReportReport
Posted on by 182

Hello,
I also always try to understand the things that I use by searching and then copy-pasting.

The following constellation:
Excel date in Cell:
25.01.2023
Input into Power Automate:
44951

 

Expression for converting and get the correct date without errors in Power Automate:
addDays('01/01/1900',sub(int(outputs('Compose')),2),'dd/MM/yyyy')

I had Chat GPT explain the formula to me in order to improve it for next time.

Why do 2 days have to be deducted? I suspect it's a "simple" computer language that I don't understand yet.

I would be happy if someone could explain it to me.
Thank You

  • Verified answer
    HansenvomDeich Profile Picture
    182 on at
    Re: Explanation convert Date from Excel in Iso Format

    Oh wow, great 😄

    Thanks !

  • Verified answer
    JonDoesFlow Profile Picture
    1,304 on at
    Re: Explanation convert Date from Excel in Iso Format

    Excel's got this funky way of marking the calendar's start line at "Day 0", which it thinks is January 0, 1900. But in reality, Day 1 is actually January 1, 1900. So, when you're trying to match dates from Excel's serial numbers to real dates, you're always a day ahead from the start.

     

    Plus, Excel treats 1900 as a leap year, it wasn't. Thisthrows in an extra day if you're counting dates from way back then. So, between starting the count at "Day 0" and pretending 1900 is a leap year, Excel's date maths can get a bit skewed.

     



    ---------------------------------------------------------------------------


    If I have helped you with an answer, please accept this post as a solution and thumbs up my reply. Thanks !

    Blog - JonDoesFlow
    Twitter - JonDoesFlow
    YouTube - JonDoesFlow

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >