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 / Fail to change format ...
Power Automate
Unanswered

Fail to change format of Start and Due Date in my flow under "Create a task in Planner"

(0) ShareShare
ReportReport
Posted on by 2

Hi, 

I have built a succesful flow integrating a shared Outlook mailbox to a Planner in Teams. However, I struggle reformatting my Start and Due Date to dd-MM-yyyy. 

I have tried formatting it directly by in the fields by:  formatDateTime(utcNow(),'dd-MM-yyyy')

I have also tried initializing it as a variable above the 'Create a task in Planner' step. 

1.PNG

 

None of this works, and I get the error message: "The 'inputs.parameters' of workflow operation 'Create_a_task_in_Planner' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'body/startDateTime' is required to be of type 'String/date-time'. The runtime value '"21-08-2022"' to be converted doesn't have the expected format 'String/date-time'."

 

I am really not sure what the problem is. Can anyone help me? 

 

Thanks a lot!

 

Cheers, 

Annasofie

 

 

Categories:
I have the same question (0)
  • MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on at

    Hello @Ansolysbeck ,

    have you already tried with the following?

    string(formatDateTime(utcNow(),'dd-MM-yyyy'))

     

    or

     

    string(formatDateTime(utcNow(), 'MM-dd-yyyy'))

     

    If I have answered your question, please mark my post as Solved.
    If you like my response, please give it a Thumbs Up.

    My blog site about Power Automate: https://powerautomatejoy.com/

    BR,

    Marco

     

  • Ansolysbeck Profile Picture
    2 on at

    Hi @MarconettiMarco,

    Thanks for your reply. I believe:

    string(formatDateTime(utcNow(),'dd-MM-yyyy'))

    is what I have done. The strange thing is that I managed to convert the date in the title using this method, but for the Start and Due Date is does not work. 

    When I do:

    string(formatDateTime(utcNow(),'yyyy-MM-dd'))

    it works (but would be the same as simply writing utcNow, and is not the format I want. 

     

    As seen in the below screenshot, the Start Date time appear correct in the

    Do you have an idea of what the problem could be?

    Thanks!

    Capture.PNG

     

     

     

     

     

  • MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on at

    Hello @Ansolysbeck ,

    please try to change the Regional format settings:

    https://www.adamfowlerit.com/2018/07/how-to-change-the-microsoft-planner-date-format/#:~:text=Under%20the%20General%20area%2C%20scroll,date%20format%20for%20Planner%20tabs.

     

    I'm able to create the Task using the following expression to set the Start Date:

    formatDateTime(utcNow(),'MM/dd/yyyy')

     

    or simply:

    utcNow()

    If I have answered your question, please mark my post as Solved.
    If you like my response, please give it a Thumbs Up.

    My blog site about Power Automate: https://powerautomatejoy.com/

    BR,

    Marco

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard