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 / convert datetime format
Power Automate
Answered

convert datetime format

(0) ShareShare
ReportReport
Posted on by 99

The Modified column in my Excel table is displaying as yyyy-MM-ddThh:mm:ssZ

How can I change it to just dd-MM-YYYY ?

I don't seem to have the formatDateTime expression. Here's my flow showing the Modified column:

Capture2.PNG

Categories:
I have the same question (0)
  • Jcook Profile Picture
    7,781 Most Valuable Professional on at

    Hello @bren88 

     

    The expression you are looking for is:

    formatDateTime(<'YOUR DATE HERE'>,'dd-MM-yyyy')

     

  • bren88 Profile Picture
    99 on at

    @Jcook I don't think I have access to this expression, it's coming up with :

     

    'australia.flow.microsoft.com says the expression is invalid'

  • Jcook Profile Picture
    7,781 Most Valuable Professional on at

    Hi @bren88 

     

    What happens if you try and use the Action Convert time zone, under the Date Time connector?

  • bren88 Profile Picture
    99 on at

    @Jcook I found the formatDateTime now, but how do I insert my Modified colummn in here? I con't choose from dynamic selector?

    Capture3.PNG

  • Jcook Profile Picture
    7,781 Most Valuable Professional on at

    Hi @bren88 

     

    So before the Excel action add a Compose action. Inside this action use the formatdatetime() expression.

     

    You almost have the expression right do not add the <>

     

    You want to type the expression than inside the () select your dynamic content

     

    Than inside your excel action reference the Compose action for your modified date

  • bren88 Profile Picture
    99 on at

    @Jcook  it displayed this :    formatDateTime(2020-04-17T02:14:03Z, dd-MM-yyyy)    in my Excel column?

    Here's my flow:

    Capture4.PNG

  • Verified answer
    bren88 Profile Picture
    99 on at

    @Jcook thank you for your help so far, got around the problem in the end by following this

    https://powerusers.microsoft.com/t5/Connecting-To-Data/formatDateTime/td-p/24013

    The following now works:)

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

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 58

#2
David_MA Profile Picture

David_MA 53 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 36 Most Valuable Professional

Last 30 days Overall leaderboard