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 is off when submi...
Power Automate
Unanswered

Date is off when submitting item to SharePoint

(0) ShareShare
ReportReport
Posted on by 2

I have a flow where a user fills out a form and Power Automate creates a SharePoint item.  The form contains two fields where the user needs to specify date and time.  Since MS Forms does not have a field type of date/time, they are having to enter this in text, using the following format : 07/01/2021 15:00:00

 

My flow attempts to handle this by using formatDateTime to convert to ISO 8061 standard, and then put that into the SharePoint fields, which are Date/Time type.  It is running OK - no errors, but the times are coming in off by 7 hours.  I think it may be converting from UTC to Mountain Time?

But I'm not sure where that is occurring.  I checked the outputs in the last run, and they are correct.  But when I look at it in Sharepoint, they are wrong. 

 

This is the what the flow variables look like:

SetTimeVariable.jpg

And this is what the Input/Outputs from the Create Item connector look like (in a test run - the start date/time I entered was 07/02/2021 12:00:00, the end date/time was entered 07/02/2021 14:00:00)

INPUT

CreateItem_Inputs.jpg

OUTPUT:

CreateItem_Outputs.jpg

But this is what is showing in the Sharepoint List:

SharePoint_List.jpg

If the Create Item Output for Scheduled Start is showing 2021-07-02 12:00:00, why is the field in SharePoint showing 7/2/2021 5:00 AM ???  The format doesn't bother me too much (not what I'd prefer, but not the end of the world)..but why is the actual time offset so much?  I don't see any settings in SharePoint that are related to this, only that the column type is Date and Time, and the format is set to Date & Time (vs Date Only). I don't know where else to look.

Categories:
  • Gopala_Krishna Profile Picture
    1,495 on at

    @JCallTX 

    Can you please try converting the time from UTC to your local time zone and check if that helps you in resolving the issue. For conversion of time zone you can make use of the Power Automate action "Convert Time Zone" 

     

    In the Base time field you can pass the date value that has been formatted using the formatDateTime()

    For source time zone you can select UTC and the destination time zone would be your local time zone.

     

    Add the output of this action to the SharePoint date field and check if that helps in resolving the issue.

     

    ------------------------------------------------------------------------------------------------------------------------------

    If the information shared helps, please consider giving a thumbs up  👍 and mark solution as resolved

  • JCallTX Profile Picture
    2 on at

    Hmm.  I added that, and now it appears to be unable to account for AM  or PM.  If I use 13:30 or 1:30 PM, it shows in SharePoint as 1:30 AM.  The flow actions seem to be interpreting the input data properly, but something on the SharePoint side isn't handling it right.  I think.

  • Ellis Karim Profile Picture
    12,336 Super User 2026 Season 2 on at

    Check the regional settings of the SharePoint site:

    ekarim2020_1-1625782822584.png

    See: Change regional settings for a site

    Ellis

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 414

#2
11manish Profile Picture

11manish 331 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard