Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

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

  • Flowriano Profile Picture
    3 on at
    Re: Date formating

    It helped me too bro, thanks a lot!

  • Richard_C Profile Picture
    6 on at
    Re: Date formating

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

  • Verified answer
    Expiscornovus Profile Picture
    31,635 Most Valuable Professional on at
    Re: Date formating

    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
    Re: Date formating

    Hi 

     

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

    Richard_C_4-1610284903538.png

    Richard

  • Expiscornovus Profile Picture
    31,635 Most Valuable Professional on at
    Re: Date formating

    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

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