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 / Formatting the date in...
Power Automate
Unanswered

Formatting the date in the Planner template

(0) ShareShare
ReportReport
Posted on by 55
 
 
 
Greetings,
I have done the research on the answer to this question, but perhaps the syntax has changed when this question was last discussed.
 
I'm using PA Cloud, standard template, no customizations yet, but the date format is the standard 
2024-10-21T10:00:00Z
 
For some reason when I apply the expression as mentioned in previous posts, I keep getting errors.
 
Should be an easy one and your help is greatly appreciated.
 
 
Preferred date format: MM/DD/YYYY.  When I try this expression: 
formatDateTime(items('Iterate_through_tasks')?['completedDateTime'],'MM/dd/yyyy')
 
I get this error:
Categories:
I have the same question (0)
  • David_MA Profile Picture
    12,966 Super User 2025 Season 2 on at
    To answer your question, it would be helpful if you post the error message. Otherwise, we can only guess your issue. The date format you show is the ISO 8601 date format, which would be the correct format and has not changed.
  • Verified answer
    MK-10101830-0 Profile Picture
    55 on at
    I was able to get this formula to work, even though PA Cloud kept saying it's an invalid expression.
     
    if(empty(items('Iterate_through_tasks')?['completedDateTime']),'',formatdatetime(items('Iterate_through_tasks')?['completedDateTime'],'MM/dd/yyyy'))

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard