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

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
Community Champion
Community Champion

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.

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!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,802)