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

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 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard