<?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>Default date and time</title><link>https://community.appian.com/discussions/f/rules/38747/default-date-and-time</link><description>Hi Team, 
 I have a requirement where the default date and time field should display the nearest rounded time. For example: 
 
 If the current time is 3:54 PM , the default time should be set to 4:00 PM . 
 If the current time is 4:01 PM , the default</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Default date and time</title><link>https://community.appian.com/thread/146450?ContentTypeID=1</link><pubDate>Fri, 21 Mar 2025 17:23:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:aa367517-ff72-4e47-8fb6-05397773c807</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;datetime(
    year(now()),
    month(now()),
    day(now()),
    if(
      minute(now()) &amp;lt;= 30,
      hour(now()),
      hour(now()) + 1
    ),
    if(minute(now()) &amp;lt;= 30, 30, 0)
  )&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Default date and time</title><link>https://community.appian.com/thread/146442?ContentTypeID=1</link><pubDate>Fri, 21 Mar 2025 10:36:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:91436f06-72a2-44b9-bd8d-bd364c7ffd16</guid><dc:creator>Vyshnavi Naripeddi</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="/members/divyag892747"&gt;divyam892747&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;you could try something like this&lt;pre class="ui-code" data-mode="java"&gt;a!localVariables(
  local!min: minute(now()),
  a!addDateTime(
    startDateTime: now(),
    years: 0,
    months: 0,
    days: 0,
    hours: 0,
    minutes: if(
      and(local!min =&amp;gt; 30, local!min &amp;lt; 60),
      60 - local!min,
      30 - local!min
    )
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>