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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

DateTime values are off by one hour at some dates

(0) ShareShare
ReportReport
Posted on by 115

Hi! I have a problem when querying DateTime values. My timezone is set to UTC-03 , so if set a date field through Crm UI to  08/08/2021 00:00 it gets converted to utc and when i query it by the sdk i get 08/08/2021 03:00 then i can use ToLocalTime() to get 08/08/2021 00:00 again.

The problem is that some dates like 01/01/1998 00:00 uses for some reason UTC-02 so it gets converted by the crm to 08/08/2021 02:00 so when i convert using my timezone UTC-03 i have a difference of 1 hour 07/08/2021 23:00.

I know it could be a daylight saving time problem, I tried converting using TimeZoneInfo class to correct it but it does not work:

TimeZoneInfo zone = TimeZoneInfo.FindSystemTimeZoneById("Argentina Standard Time");

DateTime localDateTime = TimeZoneInfo.ConvertTimeFromUtc(date, zone);

I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 107 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 92

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans