<?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>Get month from the date</title><link>https://community.appian.com/discussions/f/data/26201/get-month-from-the-date</link><description>Hi Team, 
 I am trying to get the month, day and year from the date time. I was able to filter the records using a query, but the result is in a list type variant. 
 I am unable to apply month/day functions to the fv!item. 
 
 
 If i write month[fv!item</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Get month from the date</title><link>https://community.appian.com/thread/102820?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2022 07:53:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:12e132d2-d851-4b09-93ca-3cb153264526</guid><dc:creator>abhiram1214</dc:creator><description>&lt;p&gt;thank you... that works... i didn&amp;#39;t think to flatten the data before iterating it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;@&lt;a class="internal-link view-user-profile" href="/members/harshitb0001"&gt;Harshit Bumb&lt;/a&gt;&amp;nbsp;@&lt;a class="internal-link view-user-profile" href="/members/ujjwalr0001"&gt;Ujjwal Rathore&lt;/a&gt;&amp;nbsp;thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get month from the date</title><link>https://community.appian.com/thread/102817?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2022 07:45:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a2f2a966-b07e-43df-8b07-607b9e867993</guid><dc:creator>ujjwalr0002</dc:creator><description>&lt;p&gt;I think this should be applied to items on line number 48&lt;/p&gt;
&lt;p&gt;current code&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;items: local!reportedOn&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Change to&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;items:reject(
  fn!isnull,
  a!flatten(
    local!reportedOn
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get month from the date</title><link>https://community.appian.com/thread/102816?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2022 07:43:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b6b2ade0-7b0b-4b55-97fd-c98a21b44b19</guid><dc:creator>Gabriele Camilli</dc:creator><description>[quote userid="163011" url="~/discussions/f/data/26201/get-month-from-the-date"]&amp;quot;Expression evaluation error at function a!forEach [line 47]: Error in a!forEach() expression during iteration 1: Expression evaluation error : Invalid index: Cannot index type Number (Integer) into type Date and Time&amp;quot;.[/quote]
&lt;p&gt;This happened because you tried to index fv!item, that was a single Date and Time variable&lt;/p&gt;
[quote userid="163011" url="~/discussions/f/data/26201/get-month-from-the-date"]&amp;quot;Expression evaluation error at function a!forEach [line 47]: Error in a!forEach() expression during iteration 16: Expression evaluation error at function &amp;#39;month&amp;#39; [line 56]: A null parameter has been passed.&amp;quot;[/quote]
&lt;p&gt;About this you could try a simple&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;reject(fn!isnNull, local!reportOn)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If this is not enough look at the element and see which could be the problem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get month from the date</title><link>https://community.appian.com/thread/102815?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2022 07:36:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6f8c710f-ff07-409b-9c74-18d78fb580b0</guid><dc:creator>ujjwalr0002</dc:creator><description>&lt;p&gt;The month function does not accept null values to handle that apply null check over it.&lt;/p&gt;
[quote userid="163011" url="~/discussions/f/data/26201/get-month-from-the-date"]&amp;quot;Expression evaluation error at function a!forEach [line 47]: Error in a!forEach() expression during iteration 16: Expression evaluation error at function &amp;#39;month&amp;#39; [line 56]: A null parameter has been passed.&amp;quot;[/quote]
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get month from the date</title><link>https://community.appian.com/thread/102813?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2022 07:25:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8533a1e6-f688-4c34-a1ea-e06b531cdef6</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Can you try using a!flatten() and see if this solves your problem?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>