CrmDateTime and UTC in Microsoft Dynamics CRM 4.0

Sunday, March 13, 2011

The CrmDateTime in the Microsoft Dynamics CRM 4.0 SDK is a pretty weird data type on one hand it represents a Date and a time, on the other hand it's Value property is of a string type One asks himself why not use the known .Net DateTime data type. One of the reasons (i guess) is that these fields are saved in the _MSCRM database synced to UTC and whenever these fields are requested by any Utility, the CRM adds or subtracts the offset required by the time zone of the user (context) requesting the field. This way the crm can represent the date,...
אין תגובות