<?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>To find if a given date is from previous month</title><link>https://community.appian.com/discussions/f/general/29915/to-find-if-a-given-date-is-from-previous-month</link><description>Hi 
 
 I need to find out if a particular date which is stored in record type is from the previous month. For example today in September I&amp;#39;m finding that 7th of August 2023 date (Already present in record type) is from August month. How can I achieve</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: To find if a given date is from previous month</title><link>https://community.appian.com/thread/118856?ContentTypeID=1</link><pubDate>Fri, 08 Sep 2023 12:34:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e12a79ed-d17b-4fd4-ad02-4a9a68335f44</guid><dc:creator>prachit0003</dc:creator><description>&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: To find if a given date is from previous month</title><link>https://community.appian.com/thread/118855?ContentTypeID=1</link><pubDate>Fri, 08 Sep 2023 12:34:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f31e2f72-b15d-4188-b717-462fbf07fd6b</guid><dc:creator>prachit0003</dc:creator><description>&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: To find if a given date is from previous month</title><link>https://community.appian.com/thread/118854?ContentTypeID=1</link><pubDate>Fri, 08 Sep 2023 12:34:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:45fd5cc2-c5e6-4eb1-b8b0-40a7984c6697</guid><dc:creator>prachit0003</dc:creator><description>&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: To find if a given date is from previous month</title><link>https://community.appian.com/thread/118788?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2023 12:25:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0601790c-dbfd-4e12-8c9c-122c2d86894d</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;Here&amp;#39;s an example on how to calculate the start and end dates and how to create the queryFilter:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!now: now(),
  local!endDate: eomonth(local!now, - 1),
  local!startDateTime: userdatetime(
    year(local!endDate),
    month(local!endDate),
    1,
    0,
    0,
    0
  ),
  local!endDateTime: userdatetime(
    year(local!endDate),
    month(local!endDate),
    day(local!endDate),
    23,
    59,
    59
  ),
  a!queryFilter(
    field: &amp;quot;timestamp&amp;quot;,
    operator: &amp;quot;BETWEEN&amp;quot;,
    value: { local!startDateTime, local!endDateTime }
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: To find if a given date is from previous month</title><link>https://community.appian.com/thread/118782?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2023 11:14:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:89daf954-00e9-4927-bebb-e7bd9c5b2421</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/23.3/Query_Recipes.html#return-data-between-two-dates"&gt;docs.appian.com/.../Query_Recipes.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: To find if a given date is from previous month</title><link>https://community.appian.com/thread/118777?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2023 10:47:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:56e01310-221d-4276-a1d4-2be91dee91e2</guid><dc:creator>gayathris876948</dc:creator><description>&lt;p&gt;month(ri!date)=month(today())-1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: To find if a given date is from previous month</title><link>https://community.appian.com/thread/118770?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2023 09:13:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:35e03bfa-4458-41bc-8def-81d3754dbb9a</guid><dc:creator>prachit0003</dc:creator><description>&lt;p&gt;Can you please give me an example&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: To find if a given date is from previous month</title><link>https://community.appian.com/thread/118765?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2023 09:02:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7d2e5244-944b-4db3-9af0-81d7936e0971</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;The easiest approach is to filter for values that are between the first day and the last day of the month before. User a &amp;quot;between&amp;quot; operator in the query for filtering, and the eomonth() function to find the last month.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: To find if a given date is from previous month</title><link>https://community.appian.com/thread/118760?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2023 08:17:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e8a3df19-c06a-4402-bcc4-d5bc17556e85</guid><dc:creator>prachit0003</dc:creator><description>&lt;p&gt;Actually there is a schedular which executes monthly and I need to get the data in Excel, so using&amp;nbsp;Export CDT To Excel Smart Service and in the filter option present in smart service I want to filter the date present in CDT. Basically I want all the data booked in the previous month.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: To find if a given date is from previous month</title><link>https://community.appian.com/thread/118756?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2023 07:55:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6096776d-ab25-430d-8574-ec6562ec664a</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;In which context? Database, Record, Query, Expression, ...?&lt;/p&gt;
&lt;p&gt;What did you try so far?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>