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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Converting dates from ...
Power Automate
Unanswered

Converting dates from Excel Sharepoint sheet to dates instead of integers

(0) ShareShare
ReportReport
Posted on by 2

Hi there,

 

after looking at tons of youtube videos and community posts, I finally give up; I appreciate any help. 

I have an excel table in One Drive and want to send an email extracting dates from the excel file.

The issue that I have is that the date extracted from the one column are showing up in the email like '44789'. 

 

Excel online: Key column is called 'Datum vom letzten Code'

Ellen1981_2-1685891420244.png

 

 

Ellen1981_1-1685890990950.png

 

Details for 'Apply to each': Formular is formatDateTime(addDays('1900-01-01',add(int(outputs('Compose')),-2)),'dd.MM.yyyy')

 

Ellen1981_4-1685892016611.png 

 

 

After running this I get the following error:

Ellen1981_3-1685891966400.png

 

thank you for your time,

Ellen

Categories:
I have the same question (0)
  • ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Hi @Ellen1981 

     

    To get the dates in proper format from the output of 'List rows present in a table' action, please perform the following steps:

    1. Click on the link 'Show advanced options':

    ManishSolanki_0-1685899814761.png

     

    2. Set 'DateTime Format' parameter to 'ISO 8601' as shown below:

    ManishSolanki_1-1685899883393.png

    After making those changes, you will get dates with time zone value in the format 'yyyy-MM-ddT00:00:00.000Z'. To further change its format, you can make use of formatDateTime formula.

     

    If this helps, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

  • Ellen1981 Profile Picture
    2 on at

    Hi Manish,

    thank you for getting back to me so quickly.

     

    I added ISO 8601 to "List rows present in a table'

    Ellen1981_1-1685913418232.png

     

    When I test the flow, I see that in the Output of "List rows present in a table" that the column "Datum vom letzten Code" is still shown in dates instead of the ISO format. 

    Ellen1981_0-1685973463101.png

    Not sure if it makes a different but this excel column has a formula embedded to calculate a specific date based on the time the person completes a Microsoft Form. 

     

     

    I also receive this error message. You can see that there is no information for INPUTS or OUTPUTS. Does this cause another issue as well?

     

    Ellen1981_0-1685913397501.png

    And if this is not the reason, can you tell me which date format I have to use? I typed in these expression in the section 'Compose2':

    formatDateTime(utcNow()outputs('Compose'),'dd.MM.yyyy') or

    formatDateTime(outputs('Compose'),'dd.MM.yyyy')

    and none of them seem to work. 

     

    Thank you

    Ellen

     

     

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard