web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Explanation convert Da...
Power Automate
Answered

Explanation convert Date from Excel in Iso Format

(0) ShareShare
ReportReport
Posted on by 184

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

Categories:
I have the same question (0)
  • Verified answer
    JonDoesFlow Profile Picture
    1,304 on at

    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

  • Verified answer
    HansenvomDeich Profile Picture
    184 on at

    Oh wow, great 😄

    Thanks !

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 953

#2
Valantis Profile Picture

Valantis 810

#3
Haque Profile Picture

Haque 622

Last 30 days Overall leaderboard