Skip to main content

Notifications

Community site session details

Community site session details

Session Id : Vt0PhjvqovSVWDGT7EZiRd
Power Automate - Building Flows
Answered

Swap Date Format from EU to US

Like (0) ShareShare
ReportReport
Posted on 1 May 2023 19:13:45 by 18

Hello,

 

i have a question or more like a problem i want to change to Date from dd.MM.yyyy to yyyy.dd.MM so from EU to US format with 

"formatDateTime" or "convertTimeZone" but everytime i try it is throwing me a Error because of the ISO format.
Additional Information our Environment is in the Region EU. 

The Expression for the conversion its this one: @{formatDateTime(triggerBody()['text'],'yyyy.dd.MM')} but seem not to be working are there other method ? 

shun88_0-1682968199020.png

 

  • Verified answer
    jdoss Profile Picture
    458 on 01 May 2023 at 20:53:02
    Re: Swap Date Format from EU to US

    So, if the dates will always be like that then you can parse them with an expression. 

    @{join(reverse(split(outputs('Compose'), '.')), '-')}

    Which will reverse them and create an acceptable ISO string. Then you can use, Convert time zone to get it in whatever format you want. b4flow.pngaftflow.png

  • shun88 Profile Picture
    18 on 01 May 2023 at 20:12:21
    Re: Swap Date Format from EU to US

    Sure, i extract the date/time from a PDF document with AI Builder and save it as String in sharepoint field. 
    Since most document are from EU the Date and Time format are also in EU -> dd.MM.yyyy but i need to convert them in yyyy.dd.MM what would be the best way to archive it and there are alot of date in the document like 4-5 Field.

  • jdoss Profile Picture
    458 on 01 May 2023 at 19:54:28
    Re: Swap Date Format from EU to US

    The "22.3.2023" is a string that is not in the datetime format accepted (ISO). If the time you are trying to convert is stored somewhere (like a created/modified time on a file or list item, when an email was received, or just the current time) then you can use that to convert to another format. But I would need to know more about the time you are trying to convert. 

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Automate - Building Flows

#1
David_MA Profile Picture

David_MA 362 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 295

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 290 Super User 2025 Season 1

Overall leaderboard
Loading started