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

Formatting date in a word template from form submission

Hello,

 

I have a flow which populates a word template based on a form submission. 

 

I am trying to format the date to read DD Month Year (it currently is showing as yyyy/mm/dd

 

I have this expression but it doesn't appear to be working 

 

formatDateTime(triggerBody()?['Leave Date'],'dd MMMM yyyy'))
 
Any guidance would be appreciate.
 
Capture.PNG
 
 
Capture1.PNG
1 ACCEPTED SOLUTION

Accepted Solutions

@GavinFins 

Hi there.  It looks like you may just have one too many close-parens at the end.  I tried this one and it seems to work ok:

 

formatDateTime(triggerBody()['key-button-date'], 'dd MMMM yyyy')

 

Give that a go, and keep us posted.

Good luck!

-Ed

 

If you liked this reply, please give it a thumbs up! If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

View solution in original post

1 REPLY 1

@GavinFins 

Hi there.  It looks like you may just have one too many close-parens at the end.  I tried this one and it seems to work ok:

 

formatDateTime(triggerBody()['key-button-date'], 'dd MMMM yyyy')

 

Give that a go, and keep us posted.

Good luck!

-Ed

 

If you liked this reply, please give it a thumbs up! If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

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.

Top Solution Authors
Users online (1,205)