In Dynamics 365 CE, the data time field’s value will always be returned in UTC time when retrieved through the Organization Service.
Just go through this insightful article to learn more about CRM Date Time.
https://www.powerobjects.com/2012/06/07/crm-2011-truths-about-datetime/
For e.g.
Within application à
Inside CRM
Now to get it in Local Time of the User we can use LocalTimeFromUTCTimeRequest class.
https://www.inogic.com/blog/2013/06/how-to-convert-the-datetime-in-local-and-utc-date-time-format/
Now the good thing is if we are using CDS/CRM Source Component of KingswaySoft’s SSIS Integration Toolkit, it has the Output Timezone property.
It has following 3 values.
Here UTC (Default) will return the value in UTC and Adjust to the time zone of connection user or the impersonation user will return values based on the user’s time zone. This property makes it extremely intuitive and easy to work with DateTime field within Dynamics 365 CE.
Hope it helps..
2 thoughts on “Using Output Timezone property of CDS/CRM Source Component in SSIS”