Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Time Zone Confusion

Posted on by 2,725

Hi,

Can anyone explain me very clearly how the date time field store value?What values would I get on Form and while retrieving the field in PLugins?

What if my end users have different timezones(biggest confusion)?

UTC and GMT(again confusion...)?

How to handle these fields in Plugins for different timezones?

*This post is locked for comments

  • ScottDurow Profile Picture
    ScottDurow 50,177 on at
    RE: Time Zone Confusion

    Hi - in addition to Guido's answer - my blog article on this subject might be of some help  - community.dynamics.com/.../dynamics-crm-datetimes-the-last-word.aspx

    Key point - if you want full control over the datetime when you set via the SDK you can set the DateTimeKind  to UTC - this will override the local timezone conversions according to teh user's settings.

    Hope this helps,

    Scott

  • RahulGupta1307 Profile Picture
    RahulGupta1307 2,725 on at
    RE: Time Zone Confusion

    Hi Guido,

    Greate reply.Many things are clear now.

    Just have a quick doubt:

    What if I have to set a date time field from Plugin,whether I have to set that field in UTC or Local time?How CRM will store?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans