<?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>How to convert XSD datetime into Appian object</title><link>https://community.appian.com/discussions/f/general/17897/how-to-convert-xsd-datetime-into-appian-object</link><description>I am calling a SOAP service using integration objects; then using xmltojson() plug-in function and a!fromJson() function to retrieve the data in dictionary style. 
 I am storing this data into a CDT and when doing so, the date fields are NULL even though</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to convert XSD datetime into Appian object</title><link>https://community.appian.com/thread/70495?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2019 19:59:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eb4c1a1e-69df-4dd7-ae0b-57345ae5373e</guid><dc:creator>erickp</dc:creator><description>&lt;p&gt;We are still on 18.4 but it is good to know that in 19.3 Appian is doing it automatically. Thanks&amp;nbsp;Stefan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to convert XSD datetime into Appian object</title><link>https://community.appian.com/thread/70489?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2019 14:20:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bfe8c6af-163d-4881-ae1b-4fa2a9ad0f7a</guid><dc:creator>Aditya</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can store the xsd datetime which you are getting from the SOAP service as text value. Change the type of the datetime field to text in your cdt.&lt;/p&gt;
&lt;p&gt;Once it is stored as text, you can convert it to required format in Appian or use it as it is.&lt;/p&gt;
&lt;p&gt;If you donot want to store the value as text, you can convert the value to Appian readable format before saving the value to the cdt.&lt;/p&gt;
&lt;p&gt;You can use a combination of split and todatetime functions to achieve this(convert the datetime to Appian format)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to convert XSD datetime into Appian object</title><link>https://community.appian.com/thread/70474?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2019 07:27:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:58267934-d90a-4b8c-8283-1ee9352654b8</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Which Appian version are you working with? This is the default ISO date time format. Appian since version 19.3 will automatically parse it via a!fromJson()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to convert XSD datetime into Appian object</title><link>https://community.appian.com/thread/70463?ContentTypeID=1</link><pubDate>Wed, 13 Nov 2019 13:26:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3ff01723-1981-461a-8cdb-74feabc232f0</guid><dc:creator>Shoaib</dc:creator><description>&lt;p&gt;I have used this in multiple application&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to convert XSD datetime into Appian object</title><link>https://community.appian.com/thread/70457?ContentTypeID=1</link><pubDate>Wed, 13 Nov 2019 13:17:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:05e7f2b1-8fdc-4e69-84eb-9e9ccdb9dedb</guid><dc:creator>erickp</dc:creator><description>&lt;p&gt;Thank you. I will wait to see if anyone else has any other approach.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to convert XSD datetime into Appian object</title><link>https://community.appian.com/thread/70439?ContentTypeID=1</link><pubDate>Tue, 12 Nov 2019 21:28:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6af8c372-7e6e-41a7-b05b-be8913c63198</guid><dc:creator>Shoaib</dc:creator><description>&lt;p&gt;use this in expression rule pass the date via rule input and keep the data type to text&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;with(&lt;br /&gt; local!splitedDateandTime: split(&lt;br /&gt; ri!jsonDateText,&lt;br /&gt; &amp;quot;T&amp;quot;&lt;br /&gt; ) ,&lt;/p&gt;
&lt;p&gt;local!dateInJson: split(&lt;br /&gt; split(&lt;br /&gt; local!splitedDateandTime[1],&lt;br /&gt; &amp;quot;-&amp;quot;&lt;br /&gt; ),&lt;br /&gt; &amp;quot;-&amp;quot;&lt;br /&gt; ),&lt;br /&gt; local!timeInJson: split(&lt;br /&gt; split(&lt;br /&gt; local!splitedDateandTime[1],&lt;br /&gt; &amp;quot;-&amp;quot;&lt;br /&gt; ),&lt;br /&gt; &amp;quot;:&amp;quot;&lt;br /&gt; ),&lt;br /&gt; gmt(&lt;br /&gt; datetime(&lt;br /&gt; local!dateInJson[1],&lt;br /&gt; local!dateInJson[2],&lt;br /&gt; local!dateInJson[3],&lt;br /&gt; local!timeInJson[1],&lt;br /&gt; local!timeInJson[2],&lt;br /&gt; local!timeInJson[3]&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; )&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>