cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Stokiedez
Helper I
Helper I

Converting Date Format from YYYY-MM-DD to DD-MM-YYYY

Hi, newbie here.

 

I have a simple power automate flow which sends an email when a SharePoint List entry is created. That all works great. My only issue is the date format in the email once received is in YYYY-MM-DD and I would like it in DD-MM-YYYY.  How am I best to achieve that please? Thanks in advance,

 

Stokiedez_1-1627641775304.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
eric-cheng
Solution Sage
Solution Sage

Hi @Stokiedez ,

 

Try formatdatetime('2021-07-31','dd-MM-yyyy') and replace the first parameter with dynamic content.

 

--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up

Connect on LinkedIn

View solution in original post

3 REPLIES 3
eric-cheng
Solution Sage
Solution Sage

Hi @Stokiedez ,

 

Try formatdatetime('2021-07-31','dd-MM-yyyy') and replace the first parameter with dynamic content.

 

--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up

Connect on LinkedIn

Thanks, I was trying to overcomplicate matters by creating a string prior. Thanks for your help.

ganesh131982
Helper II
Helper II

Hi @Stokiedez and @eric-cheng ,

 

I'm new to MS PowerAutomate. I'm trying to convert the date format to dd-MM-yyyy as well, however I'd like this to be converted in an email. Please see screenshot below.

 

How do I apply your expression in this situation? 

 

ganesh131982_0-1652508553995.png

 

Thanks in advance.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

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

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,182)