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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Incorrect Format of Dates
Power Automate
Unanswered

Incorrect Format of Dates

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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

Categories:
I have the same question (0)
  • MJain Profile Picture
    2,450 on at

    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

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

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

  • MJain Profile Picture
    2,450 on at

    Please share your flow screenshot where you applied this.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    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

    Hi @Anonymous ,

     

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

     

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 283

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard