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

Scheduled Flow - Updating the format of the Date within the Email

So I have set up a flow, it all works great.

 

I just need to change the format of the date in the email which gets sent:

 

In the Actual sharepoint library it is in the dd-MM-yyyy format but I think because I have had to convert it to yyyy-MM-dd format for the flow to work, it has now come out like yyyy-MM-dd. 

 

So it currently shows YYYY-MM-dd but I want it dd-MM-YYYY.

 

 

SLCLARKE_0-1634233532150.png

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @SLCLARKE 

You should change the internal name(WCExpiry) in the formula I provided to the internal name(WDExpiry) of your actual column.

formatDateTime(items('Apply_to_each')?['WDExpiry'],'dd-MM-yyyy')

 

You can find column internal name via List settings -> Click on the column name -> It’s at the end of the URL on the Edit column page, after ‘Field=’.

vLilyWmsft_1-1634285577352.png

Best Regards.

View solution in original post

4 REPLIES 4
ekarim2020
Super User
Super User

SharePoint stores time as UTC. You can use the Convert Time Zone function to convert that time to your local time-zone as well as being able to format the date to your needs:

2021-10-14_19-16-29.png


Ellis
____________________________________
If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.

v-LilyW-msft
Community Support
Community Support

Hi @SLCLARKE 

You can also try to format the date directly in the email.

Expression:formatDateTime(items('Apply_to_each')?['WCExpiry'],'dd-MM-yyyy')
Note: 'WCExpiry' is the 'WC Expiry' column internal name.

vLilyWmsft_0-1634259797454.png

Result:

vLilyWmsft_2-1634260034032.png

Hope the content above may help you.

Best Regards

If my solution helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

I tried that and now this error has come up.

 

SLCLARKE_0-1634284659329.png

 

Hi @SLCLARKE 

You should change the internal name(WCExpiry) in the formula I provided to the internal name(WDExpiry) of your actual column.

formatDateTime(items('Apply_to_each')?['WDExpiry'],'dd-MM-yyyy')

 

You can find column internal name via List settings -> Click on the column name -> It’s at the end of the URL on the Edit column page, after ‘Field=’.

vLilyWmsft_1-1634285577352.png

Best Regards.

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.

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.

Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022- Season 2 has kicked off!

Users online (3,773)