<?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>Parsing DataTime from JSON</title><link>https://community.appian.com/discussions/f/general/40219/parsing-datatime-from-json</link><description>Hello, 
 I&amp;#39;ve noticed that the newer version of a!fromJson() parses DataTime value differently, which results in receiving a different date value than the one received. I am looking for a bullet-proof way of setting the correct timezone and receiving</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Parsing DataTime from JSON</title><link>https://community.appian.com/thread/153703?ContentTypeID=1</link><pubDate>Tue, 24 Feb 2026 06:44:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:43437441-e805-4041-8bbb-e0078f70af84</guid><dc:creator>Harsha Sharma</dc:creator><description>&lt;p&gt;You can work with the json data and format it to extract the date value received. For example&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!dateReceived: a!toJson(
    {
      &amp;quot;dateOfBirth&amp;quot;: &amp;quot;1955-08-03T0:00:00+02:00&amp;quot;
    }
  ),
  trim(replace(split(
        a!jsonPath(local!dateReceived, &amp;quot;dateOfBirth&amp;quot;),
        &amp;quot;T&amp;quot;)[1],
      1, 1, &amp;quot; &amp;quot;))
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Parsing DataTime from JSON</title><link>https://community.appian.com/thread/153700?ContentTypeID=1</link><pubDate>Tue, 24 Feb 2026 05:39:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6bcd2cb0-67cb-45ae-9578-664e96084ddb</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;datevalue(left(tostring(local!yourIntegrationResult.dateOfBirth), 10))&lt;br /&gt;Sample code&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!rawJson: &amp;quot;{&amp;quot; &amp;amp; char(34) &amp;amp; &amp;quot;dateOfBirth&amp;quot; &amp;amp; char(34) &amp;amp; &amp;quot;:&amp;quot; &amp;amp; char(34) &amp;amp; &amp;quot;1955-08-03T00:00:00+02:00&amp;quot; &amp;amp; char(34) &amp;amp; &amp;quot;}&amp;quot;,
  local!parsedMap: a!fromJson(local!rawJson),
  local!wrongDate: local!parsedMap.dateOfBirth,
  local!rawDateText: left(tostring(local!parsedMap.dateOfBirth), 10),
  local!correctedDate: datevalue(local!rawDateText),

  {
    &amp;quot;Wrong Date: &amp;quot; &amp;amp; local!wrongDate,
    &amp;quot;Raw Text: &amp;quot; &amp;amp; local!rawDateText,
    &amp;quot;Correct Date: &amp;quot; &amp;amp; local!correctedDate
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Parsing DataTime from JSON</title><link>https://community.appian.com/thread/153688?ContentTypeID=1</link><pubDate>Mon, 23 Feb 2026 10:55:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:232a0e75-1a41-41f9-945b-51e92b2e66d7</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;The problem is, that the source system is sending a datetime value, instead of a date-only value.&lt;/p&gt;
&lt;p&gt;You can try to use the gmt() function to strip the offset after the initial JSON parsing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>