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 / Convert date from Exce...
Power Automate
Answered

Convert date from Excel to string-date - Excel to Planner

(0) ShareShare
ReportReport
Posted on by 4

I need to create a task in Planner by Power Automate using an Excel table, but an error message appears stating that the data type of the cell that has the task start date is in number format. I've made all the changes to Excel's date formats, but it always has the same error message.

 

TMX_Consult_0-1637758875328.png

 

Error: "OpenApiOperationParameterTypeConversionFailed. The 'inputs.parameters' of the 'Create_a_task' workflow operation of type 'OpenApiConnection' is not valid. Error Details: Input parameter 'body/startDateTime' must be of type 'String/date-time'. The runtime value '"44363"' to be converted does not have the expected format 'String/date-time'."

 

I've already changed to various date types in Excel and I've tried converting the timezone using Power Automate, but I still can't fix this error.

 

 

 

Categories:
I have the same question (0)
  • mahoneypat Profile Picture
    1,720 on at

    You can use an expression like this convert the date integer into a date.  I hard-coded your integer below, but you can replace that part with your Excel value.

     

    addDays('1899-12-30', 44363)

     

    Pat

     

  • TMX_Consult Profile Picture
    4 on at

    Obrigado por sua resposta rápida. É difícil encontrar pessoas que dão conselhos como esse. Estou tentando adicionar a função addDays, mas a 'Data de início' não aparece na área de conteúdo dinâmico, ou seja, não sei como poder aplicar o que você indicou. O conteúdo dinâmico está vazio.

     

    TMX_Consult_0-1637781179110.png

     

  • Verified answer
    mahoneypat Profile Picture
    1,720 on at

    If the field doesn't show in the Dynamic Content, you can still reference it inside the Apply to Each with syntax like this in your addDays function.

     

    addDays('1899-12-30', item()?['Date Field'])

     

    Pat

     

    Pat

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 976

#2
Valantis Profile Picture

Valantis 863

#3
Haque Profile Picture

Haque 547

Last 30 days Overall leaderboard