Skip to main content
Dynamics 365 general forum
Suggested answer

Get value from Created On (CDS) using C# plugin

editSubscribe (0) ShareShare
ReportReport
Posted on by 30

Hello Everyone,

While I am retrieving created on date from cds but excepted it is coming wrongly.

Example:

Excepted Value:2/5/2021 14:59:31 AM

Actual Value:2/5/2021 9:29:31 AM

Categories:
  • Suggested answer
    meelamri Profile Picture
    meelamri 13,188 UG Leader on at
    RE: Get value from Created On (CDS) using C# plugin

    Hi, 


    This is not a bug! it's a timezone issue. Please check this blog : 

    https://community.dynamics.com/365/b/learncrminfingertips/posts/calculate-time-utc-time-amp-user-local-time-under-whose-context-plugin-is-run-amp-crm-server-time-where-plugin-is-deployed

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Sundar…

Industry experts answer burning questions directly from our amazing Community…

Enabling Copilot Case and Conversation…

Agents can easily recap an ongoing chat, transcribe a voice conversation…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 282,978 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,562 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans