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

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

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

Jcook
Super User III
Super User III

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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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 (3,781)