Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

Getting Wrong Time while fetching dateTime field from plugin

$
0
0

Hi Everyone,  I have an update plugin on Date and Time and I have to perform some operation from it.

As I am getting the DateTime field from Images, I am getting Wrong Time in it.

Can Anyone tell me how to get the appropriate time.

DateTime StartTime = PostImage.Contains("ccs_dailer_startdate") ? (DateTime)PostImage.GetAttributeValue<DateTime>("ccs_dailer_startdate") : DateTime.MinValue;

As you can see in the screenshot we got the wrong time.

Output:

StartTime: 02/23/2019 11:00


Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>