cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bren88
Helper II
Helper II

convert datetime format

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

1 ACCEPTED SOLUTION

Accepted Solutions

@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

View solution in original post

7 REPLIES 7
Jcook
Super User
Super User

Hello @bren88 

 

The expression you are looking for is:

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

 


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





@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
Super User
Super User

Hi @bren88 

 

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


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





@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

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


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





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

Here's my flow:

Capture4.PNG

@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

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,690)