<?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>need help on date field</title><link>https://community.appian.com/discussions/f/user-interface/29148/need-help-on-date-field</link><description>Hi all, 
 having one requirement like there are two dates date 1 &amp;amp; date 2.then date 2 should be equal to + 1 day of date 1 (only week days, no sat, Sunday) what should I do?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: need help on date field</title><link>https://community.appian.com/thread/115215?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2023 14:53:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ec50865e-4abe-43ef-9944-9137a8d6dd22</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;In general, the trick is to change the underlying data, not trying to display things in a different way.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: need help on date field</title><link>https://community.appian.com/thread/115212?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2023 14:21:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:93fee8d6-5fa4-4ff0-8068-b6d96aa1a3f6</guid><dc:creator>suyogk0001</dc:creator><description>&lt;p&gt;thanks Mike&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: need help on date field</title><link>https://community.appian.com/thread/115210?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2023 14:17:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:31b7c1f8-35ca-46c8-befc-22479758093d</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;So the issue here is, while this will show the &amp;quot;value&amp;quot; of &amp;quot;Date2&amp;quot; as &amp;quot;ri!date1+1&amp;quot;, that value will never get saved into ri!date2, because the saveInto parameter of a component never evaluates until the user changes the value of that component.&lt;/p&gt;
&lt;p&gt;The actual way to get the &amp;quot;ri!date1&amp;quot; component to effect the value of ri!date2, is to use the saveInto in the &amp;quot;Date1&amp;quot; date field to target BOTH variables (and preferably, show the &amp;quot;Date2&amp;quot; field as read-only).&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt;saveInto: {
  ri!date1,
  
  a!save(ri!date2, ri!date1 + 1)
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;As far as adding 1 to &amp;quot;date1&amp;quot; value but skipping weekends - i&amp;#39;m afraid Stefan &lt;a href="/discussions/f/user-interface/29148/need-help-on-date-field/115183#115183"&gt;already answered your question above&lt;/a&gt; along with the linked documentation which I even &lt;a href="/discussions/f/user-interface/29148/need-help-on-date-field/115201#115201"&gt;provided you a highlight of&lt;/a&gt; - to reiterate, you&amp;#39;ll want to use &lt;em&gt;a!addDateTime()&lt;/em&gt; and utilize the advanced functionality it contains, which includes a way to observe the system calendar in its date addition.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: need help on date field</title><link>https://community.appian.com/thread/115208?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2023 13:47:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:04dd0040-0a9b-4be8-aa3c-e7ffade82bee</guid><dc:creator>suyogk0001</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;{
  a!dateField(
    label: &amp;quot;Date1&amp;quot;,
    labelPosition: &amp;quot;ABOVE&amp;quot;,
    value: ri!date1,
    saveInto: ri!date1,
    validations: {}
  ),
  a!dateField(
    label: &amp;quot;Date2&amp;quot;,
    labelPosition: &amp;quot;ABOVE&amp;quot;,
    value: ri!date1+1,
    saveInto: ri!date2,
    validations: {}
  )
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Created this simple code its working and for date 2 its showing + 1 day but I have to skip saturady, sunday&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: need help on date field</title><link>https://community.appian.com/thread/115201?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2023 12:38:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e8b46c3d-ec3a-4607-9a32-af4333e09900</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Did you read the documentation Stefan linked, by any chance?&amp;nbsp; Because it seems to contain your answer...&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1687955864426v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: need help on date field</title><link>https://community.appian.com/thread/115200?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2023 12:35:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:85195c11-eea8-4b34-b235-b49a0320cf93</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Can you post the code that you&amp;#39;ve tried so far?&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1687955707642v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: need help on date field</title><link>https://community.appian.com/thread/115199?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2023 12:30:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f5d39394-2a36-4a01-9340-7a699ddc5878</guid><dc:creator>suyogk0001</dc:creator><description>&lt;p&gt;Hi Harshit&lt;/p&gt;
&lt;p&gt;thanks for quick response but date 2 should auto populate on the basis date 1&lt;/p&gt;
&lt;p&gt;and&amp;nbsp;&lt;span&gt;Date 2= Date 1 + 1 ( business days only ) so for skipping &lt;span style="font-size:12px;"&gt;Saturday&lt;/span&gt;&amp;nbsp;and &lt;span style="font-size:12px;"&gt;Sunday&lt;/span&gt;&amp;nbsp;what should I do?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: need help on date field</title><link>https://community.appian.com/thread/115197?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2023 12:09:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b0b68f40-980b-4bc3-9158-c59ba1e77ae2</guid><dc:creator>suyogk0001</dc:creator><description>&lt;p&gt;yes its Ui question I have to display date 2 on the basis of date 1 and in that only week days will consider like&lt;/p&gt;
&lt;p&gt;Date 2= Date 1 + 1 ( business days only )&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: need help on date field</title><link>https://community.appian.com/thread/115184?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2023 09:53:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:db193478-5dae-400a-b148-d1eed31142e3</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;if(
  ri!date1+(day()*1)=ri!date2,
  null,
  &amp;quot;There was a problem &amp;quot;
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: need help on date field</title><link>https://community.appian.com/thread/115183?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2023 09:32:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f22f82f8-ff4a-499c-bc3c-701e84b8dd35</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Is that a UI question?&lt;/p&gt;
&lt;p&gt;Did you check the&amp;nbsp;a!addDateTime() function?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/23.2/fnc_date_and_time_adddatetime.html"&gt;docs.appian.com/.../fnc_date_and_time_adddatetime.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>