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 / Difference between flo...
Power Automate
Answered

Difference between flow date and sharepoint list

(0) ShareShare
ReportReport
Posted on by 18

I am getting data from SQL Server and one of the column has Date and Time, when I use that field to update sharepoint List column date and time, same name in column. The times are different.

PA Update Item.png

 

SharePoint List.png

 How can I fix this issue?

Categories:
  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    Can you check if your SharePoint site is in the same timezone?

    Change regional settings for a site - Microsoft Support

     

  • LearningPA23 Profile Picture
    18 on at

    Hi SundeepGhataKNZ,

     

    Appreciate your feedback.  I did check that and the site is set for the correct time zone (Easter Time Zone). That unfortunately does not fix the problem.

  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    Are you able to post a screenshot of the Update action in designer mode?

     

  • LearningPA23 Profile Picture
    18 on at

    As you can see the date is fed by the compose above, this is the formula: 

    if(empty(items('Apply_to_each')?['NextMeetingStartDate']),null,formatDateTime(items('Apply_to_each')?['NextMeetingStartDate'],'MM/dd/yyyy hh:mm tt'))
    Designer Mode.png
    It comes out well just the time zone is the issue.  I had the timezone format in there but that didn't work either, also tried put the "G" and that didn't work.
  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    @LearningPA23 ,

    In your Compose action use the UTC format

    formatDateTime('Your SQL Date','yyyy-MM-ddThh:mm:ssZ')

     

  • LearningPA23 Profile Picture
    18 on at

    still didn't work, time and zone shows 5:00 AM when it should be 9:00 AM

  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    What is the output of your Compose action with the UTC format ON?

    formatDateTime('Your SQL Date','yyyy-MM-ddThh:mm:ssZ')

     Can you provide the value?

    Trying to understand where the problem is, SQL or SP

     

  • LearningPA23 Profile Picture
    18 on at
    Value with your recommended changeValue of Compose.png
    Value before format changeValue before change.png
  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    It is definitely to do with time zone

    Can you try this?

    convertTimeZone(triggerBody()?['YourDate'],'UTC','Eastern Standard Time','yyyy-MM-dd HH:mm:ss')
  • LearningPA23 Profile Picture
    18 on at

    Now I get 1:00 AM as the time. And the null error.

     

    Unable to process template language expressions in action 'Compose' inputs at line '0' and column '0': 'The template language function 'convertTimeZone' expects its first parameter to be a string that contains the time. The provided value is of type 'Null'. Please see https://aka.ms/logicexpressions#ConvertTimeZone for usage details.'.

     

    Shows 5:00 with no AM/PM but shows 1:00 AM on the sharepoint listShows 5:00 with no AM/PM but shows 1:00 AM on the sharepoint list

     

     

     

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
11manish Profile Picture

11manish 317 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 247

#3
Henil Profile Picture

Henil 117

Last 30 days Overall leaderboard