Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Incorrect Format of Dates

(0) ShareShare
ReportReport
Posted on by

Hi all,

 

I've had an issue for a while now where dates are not being formatted correctly seeding data from Excel to Sharepoint using Flow.

In Excel, the dates are formatted as Dates however when I run the flow to seed the data, I get the following error message: 

Gemmalouiseboe_0-1645444102380.png

Can anyone help me fix this please? It's so frustrating as I've tried to change the date format in excel so many times.

 

Thanks

  • MJain Profile Picture
    2,450 on at
    Re: Incorrect Format of Dates

    Hi @Anonymous ,

     

    when you use Target Date for upgrade or Launch use "_" for spaces instead.

     

    Thanks

  • Community Power Platform Member Profile Picture
    on at
    Re: Incorrect Format of Dates

    Hi Manish,

     

    It's probably easier if I show you the expression I am trying to apply. For reference, 'Target Date for Upgrade or Launch' is the column name where the dates are being sourced from in Excel.

     

    if(empty(@{items('Apply_to_each')?['Target Date for Upgrade or Launch']}),null,addDays('1899-12-30',int(@{items('Apply_to_each')?['Target Date for Upgrade or Launch']}),'yyyy-MM-dd'))

     

    I think the problem is that Flow will not allow me to use Dynamic content within this syntax. 

     

    What do you suggest?

     

    Many thanks

  • MJain Profile Picture
    2,450 on at
    Re: Incorrect Format of Dates

    Please share your flow screenshot where you applied this.

  • Community Power Platform Member Profile Picture
    on at
    Re: Incorrect Format of Dates

    Thanks. When I tried this, it says the expression is invalid?

  • MJain Profile Picture
    2,450 on at
    Re: Incorrect Format of Dates

    Hi @Anonymous ,

     

    Please use the following formula to convert that integer value to date :

     

    if(empty(<DATE TO CONVERT>),null,addDays('1899-12-30',int(<DATE TO CONVERT>),'yyyy-MM-dd'))

     

    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,618 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,962 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow