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 UTC date wi...
Power Automate
Unanswered

Formatting UTC date within a concat function

(0) ShareShare
ReportReport
Posted on by

Hello,
I currently use two functions the first one to get the modified date and then format it, is pretty straight forward. The second one, not so much.

Function #1: convertFromUtc(outputs('Get_file_properties')?['body/modified'],'Eastern Standard Time','MM/dd/yyyy hh:mm tt')

Function #2: concat('ApproverName: ',item()?['responder']?['displayName'],variables('strBreakline'),'ResponseDate: ',item()?['responseDate'],variables('strBreakline'),'Comment: ',item()?['comments'],variables('strAllResponses'))

The output of Function #2 is: 

Chrislond58_0-1623352314816.png

 

Notice the ResponseDate isnt formatted as will happen in Function #1.
How can I use convertFromUTC in Function #2?



Categories:
I have the same question (0)
  • ScottShearer Profile Picture
    25,278 Most Valuable Professional on at

    @Anonymous 

    You could simply embed the formatDateTime() expression in Function#2, but for clarity, I suggest using a Compose action.  In the compose action, simply use the formatDateTime() expression to format your date.  Then replace the reference to the date in Function #2 with a reference to the output of the Compose action.

     

     

     

     

  • Community Power Platform Member Profile Picture
    on at

    So I created a separate compose to handle the response date.

    formatDateTime(outputs('Start_and_wait_for_an_approval_2')?['responseDate'],'MM/dd/yyyy hh:mm:ss')

    I am not sure how to include the Compose output to the second expression.
    concat('ApproverName: ',item()?['responder']?['displayName'],variables('strBreakline'),'ResponseDate: ',item()?['outputs('Compose_Format_Date1')'],variables('strBreakline'),'Comment: ',item()?['comments'],variables('strAllResponses'))

    Thanks for your help.
  • Community Power Platform Member Profile Picture
    on at

    <null>

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 339 Super User 2026 Season 1

#1
trice602 Profile Picture

trice602 339 Super User 2026 Season 1

#3
David_MA Profile Picture

David_MA 270 Super User 2026 Season 1

Last 30 days Overall leaderboard