Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Populating a word template from a Sharepoint List is not copying the dates and time correctly

(1) ShareShare
ReportReport
Posted on by 42
I have a Flow that works well except for when it populates the date and time from SharePoint as it is correct in SharePoint but when the word document is populated, the date seems to be changed to UTC time.  How do i stop the time from being converted by the Populate a Word template connector or Power Automate?
 
This seems like an easy fix but i have checked my Account settings and all regions are set to the correct time zone including SharePoint. Is there something i am missing here? 
 
SharePoint List date and Time: 
 
Power Automate Time and Date: 
 
 
Any help would be greatly appreciated,
 
With Thanks,
 
Matt 
 
 
  • matty2000 Profile Picture
    42 on at
    Populating a word template from a Sharepoint List is not copying the dates and time correctly
    Hi Manish, 
     
    Thanks for the prompt response and i have attempted your solution and it does not work as intended as my compose action does not work due to the SharePoint Date not being the correct format: 
     
    Compose error: 
    Compose Function: 
     
    SharePoint Field Output from get item action (Field 4 is Date and Time type field): 
     
     
    Can you please advise upon what changes i need to make to make this work? Do i need to convert the field to a string and how do i do this?
     
    Thanks in Advance for your assistance. 
  • ManishSolanki Profile Picture
    15,085 Super User 2025 Season 1 on at
    Populating a word template from a Sharepoint List is not copying the dates and time correctly
    Hi Matt,
     
    The input date time is in UTC format. You need to apply function to convert to local time zone. Here is an example:
     
    In the below example, I am converting UTC time to IST (India Standard Time):
    convertFromUtc('2024-07-24T03:00:00Z','India Standard Time','MM/dd/yyyy hh:mm tt')
    Replace hardcode datetime value with input datetime dynamically in the above expression.
     
     
    Output:

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >