web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Swap Date Format from ...
Power Automate
Unanswered

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
    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. 

  • shun88 Profile Picture
    18 on at
    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.

  • Verified answer
    jdoss Profile Picture
    458 on at
    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

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

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard