Are the DateTime objects returned from the Dynamics CRM web API always in UTC and where is this documented?
I am using the nuget CRM SDK. I read on several blogs (on CRM stores) that the CRM API always returns UTC DateTime objects, and I experienced that DateTime.Kind is always UTC (from my testing), but I need to know for sure.
CRM is 2015, if that matters.
I call Dynamics CRM Web Services with the following code.
var querybyattribute = new QueryByAttribute() { EntityName = Opportunity.EntityLogicalName, ColumnSet = new ColumnSet(true)
And then calling RetreiveMultiple
EntityCollection entities; using (var proxy = new ManagedTokenOrganizationServiceProxy(serviceManagement, credentials)) { entities = proxy.RetrieveMultiple(query); }
source share