Notifications
Announcements
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.
How can I fix this issue?
Can you check if your SharePoint site is in the same timezone?
Change regional settings for a site - Microsoft Support
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.
Are you able to post a screenshot of the Update action in designer mode?
As you can see the date is fed by the compose above, this is the formula:
@LearningPA23 ,
In your Compose action use the UTC format
formatDateTime('Your SQL Date','yyyy-MM-ddThh:mm:ssZ')
still didn't work, time and zone shows 5:00 AM when it should be 9:00 AM
What is the output of your Compose action with the UTC format ON?
Can you provide the value?
Trying to understand where the problem is, SQL or SP
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')
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 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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
trice602 398 Super User 2025 Season 2
David_MA 323 Super User 2025 Season 2
Expiscornovus 183 Most Valuable Professional