Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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

  • Ellen1981 Profile Picture
    2 on at
    Re: Converting dates from Excel Sharepoint sheet to dates instead of integers

    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

     

     

     

     

  • ManishSolanki Profile Picture
    15,085 Super User 2025 Season 1 on at
    Re: Converting dates from Excel Sharepoint sheet to dates instead of integers

    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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow