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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / SharePoint Dates 8 hou...
Power Automate
Answered

SharePoint Dates 8 hour discrepancy

(0) ShareShare
ReportReport
Posted on by 53

Help!

 

I am running a Flow that copies data from a spreadsheet to a SharePoint list.  By manipulating the text in the spreadsheet I am able to generate a string value that can be loaded into a SharePoint Date field.

 

String generated within Power Automate and stored in a variable: "1/1/1900 12:15 PM"

 

  • Result when copied to SharePoint text field: "1/1/1900 12:15 PM"
  • Result when copied to SharePoint date field: "1/1/1900 4:15 AM"

All of the date fields are - 8 hours from the string that is copied to them. Note: the same string variable is used to populate each field ...

 

I am perplexed to say the least.

 

Categories:
I have the same question (0)
  • KJH1138 Profile Picture
    53 on at

    Additional note - when I copy the same string manually the value does not change when I manually paste the string into the Date field -only when it is done via PA

     

  • v-xiaochen-msft Profile Picture
    on at

    Hi @KJH1138 ,

     

    I reproduced your scenario in below test:

    vxiaochenmsft_0-1680058489126.png

     

     

    You can reshape your string value by this function: addHours(outputsofyourtimestring,8)

     

    vxiaochenmsft_1-1680058489129.png

     

     

    So that you will get proper timestamp in date field.

    vxiaochenmsft_2-1680058489130.png

     

    Best Regards,

    Wearsky

  • Chriddle Profile Picture
    8,515 Super User 2026 Season 1 on at

    This could be a time zone issue.

    When you insert a UTC date string into a date column via Power Automat, SharePoint adjusts it to its local time zone.

    If this occurs, don't just add a few hours, set the correct time zone behavior with the convertToUtc(...) function.

  • Chriddle Profile Picture
    8,515 Super User 2026 Season 1 on at

    Your life will be much easier if you only use ISO 8601 formatted date strings in Power Automate.
    Only format differently if it's really necessary - that hardly ever happens 😉

  • KJH1138 Profile Picture
    53 on at

    Agreed - I have been using the ISO 8601 setting up until now but could not get it to work in this particular case due to some creative formatting in the source data which is automatically generated so I'm unable to address the issue at that level.  

  • Chriddle Profile Picture
    8,515 Super User 2026 Season 1 on at

    The parseDateTime() function is your friend here 😉

    It's a bit tricky to use, but in the end you can be sure that you'll get a correct date string.

    parseDateTime('1/1/1990', 'es-es', 'd/M/yyyy')
  • Verified answer
    Chriddle Profile Picture
    8,515 Super User 2026 Season 1 on at

    or with time:

    parseDateTime('1/1/1990 11:31 PM', 'en-us', 'd/M/yyyy h:mm tt')

     

  • KJH1138 Profile Picture
    53 on at

    But why do in one step what I'm able to do in 5?  I cannot express how helpful this info is - thank you.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 237 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 176 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 96 Super User 2026 Season 1

Last 30 days Overall leaderboard