<?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>Initial moth &amp;amp; year shown by the date picker in a!dateField component without a value</title><link>https://community.appian.com/discussions/f/user-interface/14698/initial-moth-year-shown-by-the-date-picker-in-a-datefield-component-without-a-value</link><description>Hi, 
 We&amp;#39;re running Appian 18.4 and have had a user comment that the date picker initially displayed by an un-set (no value) a!dateField input has changed. 
 Currently, if the a!dateField component has no value and the user puts focus on that input, it</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Initial moth &amp; year shown by the date picker in a!dateField component without a value</title><link>https://community.appian.com/thread/65982?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2019 21:13:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9353e084-2e13-4833-a344-c023dc523744</guid><dc:creator>April Schuppel</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/mikej117"&gt;mikej117&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you set the second date field to display the first date&amp;#39;s value if it&amp;#39;s null? Then if the user doesn&amp;#39;t change the second date, a save on the submit will save the first date into the second?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt;load(
  local!date1: todate(null),
  local!date2: todate(null),
  {
    a!dateField(
      value: local!date1,
      saveInto: local!date1
    ),
    a!dateField(
      value: if(
        isnull(local!date2),
        local!date1,
        local!date2
      ),
      saveInto: local!date2
    ),
    a!buttonLayout(
      primaryButtons: a!buttonWidget(
        label: &amp;quot;SUBMIT&amp;quot;,
        saveInto: a!save(
          local!date2,
          if(isnull(local!date2), local!date1, local!date2)  
        ),
        submit: true
      )
    )
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>