<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Cdt Casting is converting the date time to system timezone</title><link>https://community.appian.com/discussions/f/rules/9580/cdt-casting-is-converting-the-date-time-to-system-timezone</link><description>Json response is giving date time value as output. We are casting this output to a cdt field (date time field). We are using a!fromJson to convert the json response and map it to cdt. The issue is casting is converting date time value to system time zone</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Cdt Casting is converting the date time to system timezone</title><link>https://community.appian.com/thread/41967?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2017 14:49:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4e0e9c09-8516-4f2d-840b-7d4a75cb437f</guid><dc:creator>aloks0189</dc:creator><description>Also for more reference, you can go through the reference which is been shared along with this Shared Component&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cdt Casting is converting the date time to system timezone</title><link>https://community.appian.com/thread/41966?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2017 13:59:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e25555ad-9930-4af3-ad20-1e3f44e91649</guid><dc:creator>aloks0189</dc:creator><description>@akhilaa this is the known behavior, when you convert the data in JSON using tojson() function and again use fromjson() then the format of the date gets change, i too have face the same issue earlier, so i have shared a component named as &amp;#39;Date Formatter in JSON&amp;#39; please click on this link:&lt;br /&gt;&lt;br /&gt;&lt;a href="https://forum.appian.com/suite/tempo/records/item/lMBCLGOdlMUpdGVqW3dQaIKmclBmvvNEj8vu_cjb7T-5YiPr4Fu8ly5Yj1s09uenE4RYzA8zKyx7eiUh--uLnMhJqROi0IlcxvKEteKCkUDJwgRRg/view/summary"&gt;forum.appian.com/.../summary&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;in order to work with this, you need follow this sample:-&lt;br /&gt;==================================================&lt;br /&gt;load(&lt;br /&gt;local!modiedData: modifyjsondata(&amp;quot;dob&amp;quot;, a!toJson(ri!empDetails), &amp;quot;yyyy-mm-dd&amp;quot;, &amp;quot;mm/dd/yyyy&amp;quot;),&lt;br /&gt;local!response: modifyjsondata(&amp;quot;joinDate&amp;quot;, local!modiedData, &amp;quot;yyyy-mm-dd&amp;quot;, &amp;quot;mm/dd/yyyy&amp;quot;),&lt;br /&gt;local!response&lt;br /&gt;)&lt;br /&gt;==================================================&lt;br /&gt;&lt;br /&gt;Here let&amp;#39;s assume that,&lt;br /&gt;=&amp;gt; local!modiedData is holding the data retrieved in form of JSON whose date is got affected,&lt;br /&gt;=&amp;gt; local!response is holding the required data which can be of type CDT, or can be cast to CDT, or can be store into Rule input of type CDT&lt;br /&gt;&lt;br /&gt;This function has following parameters:-&lt;br /&gt;1. which property of json is getting affected of type Date, in your case, it might be LAST_MODIFIED_DATETIME i guess&lt;br /&gt;2. provide the complete json data which contains LAST_MODIFIED_DATETIME also within it along with other properties&lt;br /&gt;3. existing Date format of date in the JSON data&lt;br /&gt;4. Expected Date Format to be returned&lt;br /&gt;&lt;br /&gt;by passing these parameters correctly you will be able to get the a formatted JSON as you are expecting it to be, which you can use to store into CDT&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;hope this will help you&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>