<?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>Date being single element in array vs Date being one of the elements in array</title><link>https://community.appian.com/discussions/f/rules/34629/date-being-single-element-in-array-vs-date-being-one-of-the-elements-in-array</link><description>I have a value of type Date, inside two arrays. First array has only one value, Second array has multiple values. When I try to evaluate their typeOf(), I get 54 (Date with Timezone) for first one, &amp;amp; I get 7 (Date) for second one. The question is, why</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Date being single element in array vs Date being one of the elements in array</title><link>https://community.appian.com/thread/133055?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2024 10:23:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f4e79431-d5d3-408e-80c3-ca23750ec617</guid><dc:creator>juhi_nagaich</dc:creator><description>&lt;p&gt;Thank you for your inputs&amp;nbsp;&lt;a href="/members/daniell"&gt;Dan Lluhi&lt;/a&gt;&amp;nbsp;, &amp;nbsp;.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date being single element in array vs Date being one of the elements in array</title><link>https://community.appian.com/thread/133049?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2024 06:49:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1e7c7694-9aab-4782-a4b9-64c501d2f57f</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;While I know that there is Date and Date with Timezone, did you guys see any difference in behaviour of these two types? I did not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date being single element in array vs Date being one of the elements in array</title><link>https://community.appian.com/thread/133041?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2024 21:06:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ccbf2650-fe21-4507-b6fb-561dfca98c81</guid><dc:creator>David Jimenez </dc:creator><description>&lt;p&gt;As &lt;a href="/members/daniell"&gt;Dan Lluhi&lt;/a&gt;&amp;nbsp; said, sometimes the variant list has different behavior.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;In your case, you can check that by changing the first component of the second array, the returned type is again 54.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/15/pastedimage1712696735773v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date being single element in array vs Date being one of the elements in array</title><link>https://community.appian.com/thread/133034?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2024 20:09:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0ee51029-8f96-45d4-8ed7-2e1ad84c3a21</guid><dc:creator>Dan Lluhi</dc:creator><description>&lt;p&gt;It&amp;#39;s hard to say for sure, but it seems like the &amp;quot;List of Variant&amp;quot; type does not support items of type &amp;quot;Date and Timezone&amp;quot;, so they get converted to the regular &amp;quot;Date&amp;quot; type. I generally try to avoid List of Variant if possible because it often causes unexpected behavior like this&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>