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 / Amend format of receiv...
Power Automate
Answered

Amend format of received time dynamic content

(0) ShareShare
ReportReport
Posted on by

I'm using power automate to sort incoming emails into a SharePoint file. The created SharePoint file name is "'received time' 'subject'.eml" but the default layout for received time is 'YYYY-MM-DD T h_m_s + 00_00'. I would ideally like this to read 'DD-MM-YYYY T h_m' but I cannot find a way to do this. Any suggestions?

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

    Hi @Anonymous ,

    Do you want to The 'received time' format convert to ''DD-MM-YYYY T h_m'?

    If so, I have a test for your reference.

    In my scenario:

    vyetonggumsft_1-1696851830899.png

    vyetonggumsft_2-1696851905580.png

    vyetonggumsft_0-1696851808256.png

    	concat(concat(
     split(split(outputs('Received_Time'),'-')[2],'T')[0],
     '-',split(outputs('Received_Time'),'-')[1],
     '-',split(outputs('Received_Time'),'-')[0]
     ),
    	 ' T ',
    	 concat(
    		 substring(split(outputs('Received_Time'),'T')[1],0,2),
    		 '_',
    		 substring(split(outputs('Received_Time'),'T')[1],3,2) 
    				 )
    		 )

     

    Best Regards,

    Sunshine Gu

  • Community Power Platform Member Profile Picture
    on at

    Hi @v-yetonggu-msft 

    Thanks for your reply.

    I've tried using your solution but it has flagged the following error:

    georgep982_0-1696943834485.png

    This is my complete flow, with your solution copied and pasted in, in case the issue is with the way I've formatted it:

    georgep982_1-1696943916254.png

    georgep982_2-1696943950502.png

    (there is a SharePoint address that I have removed for the screenshot).

    Can you see anything that is wrong?

     

    Thanks,

    George

  • Verified answer
    v-yetonggu-msft Profile Picture
    on at

    Hi @Anonymous ,

    Reference the compose control name in your scene.

    vyetonggumsft_0-1697001665968.png

    concat(concat(
     split(split(outputs('compose'),'-')[2],'T')[0],
     '-',split(outputs('compose'),'-')[1],
     '-',split(outputs('compose'),'-')[0]
     ),
     ' T ',
     concat(
     substring(split(outputs('compose'),'T')[1],0,2),
     '_',
     substring(split(outputs('compose'),'T')[1],3,2) 
     )
     )

    Best Regards,

    Sunshine Gu

  • Community Power Platform Member Profile Picture
    on at

    Yes that has worked. Thanks @v-yetonggu-msft 

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

#2
David_MA Profile Picture

David_MA 273 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 135 Most Valuable Professional

Last 30 days Overall leaderboard