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

Community site session details

Session Id : E4XcF6oVE62hWo7FKnyetM
Power Automate - Building Flows
Answered

Excel Online dates are converted to integers in Send Email

Like (0) ShareShare
ReportReport
Posted on 6 Mar 2020 06:38:38 by

Hi,

 

I'm new to building flows, and i've set up an excel table for Excel and Flow to be connected via OneDrive.

 

The challenge im facing is that the date format in excel is converted to integers via the emails sent.

 

I noted that this problem exist only when i'm using "List rows present in a table", but if i'm only using "Selected row" flow, i'm able to select formatted dates. Need some help here, please 🙂

 

The flow i have as below:

Capture.PNG

 
 

 

I have the same question (0)
  • efialttes Profile Picture
    14,756 on 06 Mar 2020 at 07:00:51
    Re: Excel Online dates are converted to integers in Send Email
    Hi!
    There are several posts covering this issue. This is one of them
    Hope it helps
    https://powerusers.microsoft.com/t5/Using-Flows/Excel-online-business-converts-date-to-days-So-how-do-i-compare/td-p/247418
  • Verified answer
    v-alzhan-msft Profile Picture
    on 06 Mar 2020 at 07:02:12
    Re: Excel Online dates are converted to integers in Send Email

    Hi @Anonymous ,

     

    Please refer to screenshot below to create the flow:

    1.png

     

    You could get the date in the Compose 2 action with expression below:

    formatDateTime(addDays('1900-01-01',add(int(outputs('Compose')),-2)),'yyyy-MM-dd')

     

    Best Regards,

    Alice

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • efialttes Profile Picture
    14,756 on 06 Mar 2020 at 07:11:21
    Re: Excel Online dates are converted to integers in Send Email
    Hi!
    The explanation of this is... you need to calculate the nr of days between the desired date and the one Excel uses as start point to generate the integer values. The date calendar in Excel starts on January 1st, 1900. Please also note, that, according to this post:

    https://www.epochconverter.com/seconds-days-since-y0

    "Days Since 1900-01-01 (+2) is used in the Microsoft Excel date functions such as DAY(serial_number) and WEEKDAY().

    Note, Excel's serial number is 2 higherthan the number on this page.

    In Excel January 1 is serial number 1. In this converter midnight January 1, 1900 is 0, after 1 day it is midnight on January 2. To correct this you have to add/subtract 1.Excel incorrectly sees 1900 as a leap year (for compatibility with Lotus 1-2-3) so you have to add/subtract 1 to all days when using in Excel. Also see: Excel incorrectly assumes that the year 1900 is a leap year"

    Hope this helps

     

  • Community Power Platform Member Profile Picture
    on 06 Mar 2020 at 07:14:25
    Re: Excel Online dates are converted to integers in Send Email

    @v-alzhan-msft,  Thank you, this works like a charm!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 666 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 382 Moderator

#3
developerAJ Profile Picture

developerAJ 254

Last 30 days Overall leaderboard
Loading complete