<?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>Changing to current date automatically</title><link>https://community.appian.com/discussions/f/user-interface/19630/changing-to-current-date-automatically</link><description>Hi all, 
 
 I am new to appian and I am trying to build a to-do list, in which the list automatically updates the date to today in the interface, and from the database queries all the to activities for today as well as yesterday. 
 So, I was able to make</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Changing to current date automatically</title><link>https://community.appian.com/thread/76718?ContentTypeID=1</link><pubDate>Thu, 24 Sep 2020 16:53:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:853e4c0a-ec7d-4062-a0b5-5e3ff6bb2c6e</guid><dc:creator>Karanc</dc:creator><description>&lt;p&gt;Thank you, I will for sure try to make the changes accordingly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing to current date automatically</title><link>https://community.appian.com/thread/76716?ContentTypeID=1</link><pubDate>Thu, 24 Sep 2020 16:19:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:394da707-7a2f-4509-8f51-c42d280816cb</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;The best way to approach this is to set up a local variable that contains the current date. You can set a default value for the local variable of today, but the variable can still be changed using a date field. Plus, you can use the current value of the variable to return the current list of activities for today.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s an example:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!date: today(),
  local!query: {}, /* rule!GetDataByDate(local!date) */
  {
    a!dateField(
      label: &amp;quot;Date&amp;quot;,
      value: local!date,
      saveInto: local!date
    ),
    a!sectionLayout(
      contents: {
        a!richTextDisplayField(
          value: a!richTextItem(
            text: /* Display the results of local!query here */
            &amp;quot;Here&amp;#39;s the results for &amp;quot; &amp;amp; local!date,
            size: &amp;quot;LARGE&amp;quot;
          )
        )
      }
    )
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>