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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,573)