<?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>Dob field</title><link>https://community.appian.com/discussions/f/user-interface/24681/dob-field</link><description>Hi, 
 My question is , in interface design to edit a expression level, to enter a dob automatically to display a age field??? Is it possible give me a solution</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Dob field</title><link>https://community.appian.com/thread/95398?ContentTypeID=1</link><pubDate>Mon, 23 May 2022 23:24:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:500f4a09-8672-482e-8586-baeb2374eba1</guid><dc:creator>Naresh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;As mike mentioned in your question&amp;nbsp;you haven&amp;#39;t provided much details. I am guessing this is what you are looking for.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="xml"&gt;a!localVariables(
  local!dob,
  local!age,
  {
    a!dateField(
      label:  &amp;quot;DOB&amp;quot;,
      value: local!dob,
      saveInto: {
        local!dob,
        a!save(
          local!age,
          if(
            a!isNullOrEmpty(local!dob),
            null,
            int(tointeger(tointervalds(today()) - tointervalds(local!dob))/365)
          )
        )
      }
    ),
    a!textField(
      label: &amp;quot;Age&amp;quot;,
      value: local!age,
      readOnly: true
    )
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dob field</title><link>https://community.appian.com/thread/95396?ContentTypeID=1</link><pubDate>Mon, 23 May 2022 18:07:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:68ac9a00-f5b4-4f96-b664-c6ac1904647f</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Sorry, I&amp;#39;m having a lot of trouble understanding what you&amp;#39;re trying to ask here.&amp;nbsp; My only guess is, you&amp;#39;re asking if a user can enter a DOB, and then once it&amp;#39;s populated, an Age value will be shown elsewhere on the same interface?&amp;nbsp; Please confirm if this is close, and if so, I can help show you how this would be implemented.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>