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 Automate
Unanswered

Date formating

(0) ShareShare
ReportReport
Posted on by 6

Hi this is my first post in the  power automate (PA) community. I am really new to PA and have my first challenge.

I have created a flow that adds rows from Excel (OneDrive) and adds the information to a row in a SharePoint list.

This works fine until I tried this on a Dates Column in my spreadsheet. I understand that I need to add an expression to change the date. I have found the function show below which I want to add the date from the dynamic content list. 

 

addDays('1899-12-30',int(ADD DYNAMIC CONTENT HERE),'yyyy-MM-dd')

 

However the excel date column that I wish to add is not showing in the dynamic contact list show below.

 

Richard_C_0-1610271767455.png

 Could you please tell me what I  am doing wrong. Apologies if I have not explained this very well.

 

Richard

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Richard_C,

     

    Where are you adding this expression? Is this in an action within an apply to each loop? 

     

    Below is an example how you could approach this.

     

    applyttoeach_adddayscompose.png

  • Richard_C Profile Picture
    6 on at

    Hi 

     

    thanks for the quick reply. I am trying to add the expression here

    Richard_C_4-1610284903538.png

    Richard

  • Verified answer
    Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Richard_C,

     

    Yes, it should be possible to add a similar kind of expression over there. Change the column name to the name of your column from Excel.

    addDays('1899-12-30', int(items('Apply_to_each')?['YourColumnNameFromExcel']),'yyyy-MM-dd')

    duedateexample.png 

  • Richard_C Profile Picture
    6 on at

    Thank you I will try again later today or in the morning

  • Flowriano Profile Picture
    3 on at

    It helped me too bro, thanks a lot!

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