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 / Help with Date and Tim...
Power Automate
Answered

Help with Date and Time Formatting

(0) ShareShare
ReportReport
Posted on by 6

Hi,

 

I am looking for a little help finishing this flow. The flow works, does what I want it to do however the output time used by the planner 'completed date and time' is not in the format I want it to be in. I am a flow beginner so forgive me if this is already out there. I have had a look and could not find anything that answered this question.

 

In the date and time field I currently have the following - triggerOutputs()?['body/completedDateTime'] which gives me the time the task was completed in this format yyyy-mm-ddThh:mm:ss.ffffffZ (example 1010-01-01T13:45:20.9675865Z) 

 

I would be forever grateful if someone could have a look and help me get this to output in either dd-mm-yyyy hh:mm:ssZ (example 01-01-1010 13:45:20Z) or dd-MM-yyyy hh:mm:ssZ (01-Jan-1010 13:45:20Z)

 

Having carried out a lot of online research I believe I am looking for the output to be in the 'universal sortable date/time pattern' and/or 'universal full date/time pattern'

 

I would also be interested in some learning if anyone knows any good resources. My company has recently taken interest in the power platform and I would like to learn as much as I can about building flows and automation.

 

Capture.jpg

 

Thanks

Dan

Categories:
I have the same question (0)
  • Verified answer
    Jcook Profile Picture
    7,783 Most Valuable Professional on at

    Hello @dogmaticdrongo 

     

    I have recently wrote a blog on converting and working with date/time formats. Check it out here:

    https://flowaltdelete.ca/2020/10/15/converting-time-zones-easily-in-power-automate/

     

  • dogmaticdrongo Profile Picture
    6 on at

    @Jcook 

     

    Thanks for the link. I can see this coming in handy for future use. I have managed to sort my issue. I have marked your post as the solution as it helped me get there in the end.

     

    Where I was using the expression:

     

    triggeroutputs()?['body/completedDateTime']

     

    I just added the format date time expression to it as follows:

     

    formatDateTime(triggerOutputs()?['body/completedDateTime'], 'U')

     

    It had been bugging me for a few days but now having run a test it works perfectly. Thanks for help and push in the right direction. Here is the flow for comparison just incase anyone else comes across the same issue.

     

    Capture1.PNG

     

    The following helped me find out what time format I wanted - link

  • ajdhingr Profile Picture
    Microsoft Employee on at

    @Jcook - Thanks for sharing the link. Its quiet useful 

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 410

#2
Vish WR Profile Picture

Vish WR 289

#3
David_MA Profile Picture

David_MA 282 Super User 2026 Season 1

Last 30 days Overall leaderboard