web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Date/Time not populati...
Power Automate
Answered

Date/Time not populating correctly in Word Template but is populating correctly in PowerAutomate flow?

(0) ShareShare
ReportReport
Posted on by

Hello - 

I have built a flow that carries out the following steps: 

1. Trigger - MS Forms response

2. Populates an MS Word Template with forms responses

3. Updates File Properties in Sharepoint

 

The flow is running, but it is populating the date incorrectly in the MS Word Template.  I want the date to populate in the MS Word Template as MM-dd-yyyy, but it is populating like this example: 

2024-03-02T08:00:00+00:00 (with the time added in an the month, date, and year out of order).  This is confusing to me because it appears to be formatted correctly in the flow outputs: 

jessicadduffey_0-1707776076965.pngjessicadduffey_1-1707776125913.pngjessicadduffey_2-1707776167373.png

jessicadduffey_3-1707776209156.pngjessicadduffey_4-1707776245515.png

...and in Sharepoint:

jessicadduffey_5-1707776292797.png

It's the Word template that is not updating correctly: 

jessicadduffey_6-1707776340297.png

 

Here is a screenshot of that part of my flow...

jessicadduffey_7-1707776442388.png

Get Converted Time Zone Exp: 

formatdatetime(variables('PostDeadline'),'MM-dd-yyyy')
 
jessicadduffey_8-1707776523702.png

...where the posting deadline is the output of the Get Converted Time Zone action.

 

Any ideas on how I can get the date to populate correctly (without the time) in the Word template?

 

Thank you!

Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    @jessicadduffey 

     

    SharePoint stores dates in UTC format internally, which means that the same format will appear in your Word template. To address this, you have two options:

    1. Set the date format directly in your Word template by specifying the desired format.

      -OR-

    2. Create a Text field in SharePoint that stores the date in the desired formatted version

  • jessicadduffey Profile Picture
    on at

    @AlexEncodian , this is helpful, but I am not using Encodian - I am using the Word Online premium connector Populate an MS Word Template.  The limitation with this method is that you cannot define the Sharepoint column type as date/time or else the field will not show up in PowerAutomate; it needs to be defined as a single line of text or multiple lines of text.  There's no way (that I know of) to autoformat this field in the Word Template so it shows up as m/dd/yyyy format.  Do you have any suggestions outside of the Encodian connector?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 227

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard