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 Date and Ti...
Power Automate
Answered

Formatting Date and Timestamp to Excel

(0) ShareShare
ReportReport
Posted on by 15

Trying to run a flow for logging my working hours (started using the formatting from the template) and am getting the date and time in weird formats. I'd love the date, when manually triggered, to appear in MM/DD/YYYY format and the time to just appear as HH:MM in a 12 hour format. At the moment the Key-button-timestamp button gives me the date as well as time down to the second and I can't figure out how to format the output. 

Categories:
I have the same question (0)
  • Verified answer
    v-yuazh-msft Profile Picture
    on at

    Hi @Celdere,

     

    Do you want to formate the datetime from timestamp with type 'MM-dd-yyyyTHH:mm'?

     

    If you would like to formate the datetime from timestamp with type 'MM-dd-yyyyTHH:mm',you could refer to screenshot below to create the flow:

    Capture.PNG

     

    The expression in the Compose 2 as below:

    formatDateTime(outputs('Compose'),'MM-dd-yyyyTHH:mm')

    The flow would run successfully as below:

    Capture.PNG

     

     

    Please let me know if your problem could be solved.

     

    Best regards,

    Alice

     

     

     

     

  • Verified answer
    Celdere Profile Picture
    15 on at

    Made it work using the DateTime convert timezone function. Thanks!

  • GrischkePro Profile Picture
    287 on at

    You're a waste of space!

     

    If you got it working, why didn't you say how? Delete this thread!

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