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 / Swap Date Format from ...
Power Automate
Answered

Swap Date Format from EU to US

(0) ShareShare
ReportReport
Posted on 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

 

Categories:
I have the same question (0)
  • jdoss Profile Picture
    458 on at

    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. 

  • shun88 Profile Picture
    18 on at

    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.

  • Verified answer
    jdoss Profile Picture
    458 on at

    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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 881

#2
Valantis Profile Picture

Valantis 823

#3
Haque Profile Picture

Haque 485

Last 30 days Overall leaderboard