<?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>How to bring today&amp;quot;s date to the process variables?</title><link>https://community.appian.com/discussions/f/general/13569/how-to-bring-today-s-date-to-the-process-variables</link><description>a!dateField( label: &amp;quot;Order Submission Date&amp;quot;, /*value: ri!OrderSubmissionDate,*/ value: fn!today(), saveInto: ri!OrderSubmissionDate, required: true ),</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to bring today"s date to the process variables?</title><link>https://community.appian.com/thread/61595?ContentTypeID=1</link><pubDate>Mon, 15 Oct 2018 16:50:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:87423cbd-e85a-46c3-9006-6360f4d0d8b9</guid><dc:creator>rajats246</dc:creator><description>i agree with answer of robert and  joubin. You can even use below approach also:&lt;br /&gt;
load(&lt;br /&gt;
local!orderSubmissionDate:today(),&lt;br /&gt;
a!formLayout(&lt;br /&gt;
  label: &amp;quot;Form&amp;quot;,&lt;br /&gt;
  contents: {&lt;br /&gt;
    a!dateField(&lt;br /&gt;
      label: &amp;quot;Date&amp;quot;,&lt;br /&gt;
      labelPosition: &amp;quot;ABOVE&amp;quot;,&lt;br /&gt;
      value: local!orderSubmissionDate,&lt;br /&gt;
      saveInto: local!orderSubmissionDate,&lt;br /&gt;
      validations: {}&lt;br /&gt;
    )&lt;br /&gt;
  },&lt;br /&gt;
  buttons: a!buttonLayout(&lt;br /&gt;
    primaryButtons: {&lt;br /&gt;
      a!buttonWidget(&lt;br /&gt;
        label: &amp;quot;Submit&amp;quot;,&lt;br /&gt;
        saveInto:{&lt;br /&gt;
          a!save(ri!theDate,local!orderSubmissionDate)&lt;br /&gt;
        },&lt;br /&gt;
        submit: true,&lt;br /&gt;
        style: &amp;quot;PRIMARY&amp;quot;&lt;br /&gt;
      )&lt;br /&gt;
    },&lt;br /&gt;
    secondaryButtons: {}&lt;br /&gt;
  )&lt;br /&gt;
)&lt;br /&gt;
)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to bring today"s date to the process variables?</title><link>https://community.appian.com/thread/61593?ContentTypeID=1</link><pubDate>Mon, 15 Oct 2018 16:09:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5e5cd126-1572-4b0c-aac9-aed873b50db4</guid><dc:creator>Joubin Izadi</dc:creator><description>&lt;p&gt;It also seems you want to default to today&amp;#39;s date as well.&lt;/p&gt;
&lt;p&gt;I will add on to Bob&amp;#39;s answer with the following code. Note the updated &amp;quot;value&amp;quot; field for the dateField.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;{
  a!dateField(
    label: &amp;quot;Order Submission Date&amp;quot;,
    value: if(
      isnull(ri!OrderSubmissionDate),
      fn!today(),
      ri!OrderSubmissionDate
    ),
    saveInto: ri!OrderSubmissionDate,
    required: true
  ),
  a!buttonLayout(
    primaryButtons: {
      a!buttonWidget(
        label: &amp;quot;Submit&amp;quot;,
        saveInto: {
          a!save(
            ri!OrderSubmissionDate,
            if(
              isnull(ri!OrderSubmissionDate),
              fn!today(),
              ri!OrderSubmissionDate
            )
          )
        },
        submit: true
      )
    }
  )
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to bring today"s date to the process variables?</title><link>https://community.appian.com/thread/61592?ContentTypeID=1</link><pubDate>Mon, 15 Oct 2018 15:54:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f70ca469-bb17-450a-92ec-304cec70ca34</guid><dc:creator>Robert Shankin</dc:creator><description>&lt;p&gt;You can mange this using saveInto on the submit button.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!formLayout(
  label: &amp;quot;Form&amp;quot;,
  contents: {
    a!dateField(
      label: &amp;quot;Date&amp;quot;,
      labelPosition: &amp;quot;ABOVE&amp;quot;,
      value: ri!theDate,
      saveInto: ri!theDate,
      validations: {}
    )
  },
  buttons: a!buttonLayout(
    primaryButtons: {
      a!buttonWidget(
        label: &amp;quot;Submit&amp;quot;,
        saveInto:{
          a!save(ri!theDate,if(isNull(ri!theDate),fn!today(), ri!theDate))
        },
        submit: true,
        style: &amp;quot;PRIMARY&amp;quot;
      )
    },
    secondaryButtons: {}
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to bring today"s date to the process variables?</title><link>https://community.appian.com/thread/61591?ContentTypeID=1</link><pubDate>Mon, 15 Oct 2018 15:48:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5bfacdaa-a2f7-4e68-971b-c94d333ca77f</guid><dc:creator>Colton Beck</dc:creator><description>&lt;p&gt;Take a look at the documentation &lt;a href="https://docs.appian.com/suite/help/18.3/Working_with_Data_in_Process.html"&gt;here&lt;/a&gt;. It should answer your question.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>