<?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 get only a date when user enter just a date part in DateTimeField</title><link>https://community.appian.com/discussions/f/user-interface/11233/how-to-get-only-a-date-when-user-enter-just-a-date-part-in-datetimefield</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to get only a date when user enter just a date part in DateTimeField</title><link>https://community.appian.com/thread/49396?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2017 12:28:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:aeed2736-5798-4fe7-8a6c-7b003ffbc46a</guid><dc:creator>Jamal Case</dc:creator><description>&lt;p&gt;&amp;nbsp;Depending on the user/environment timezone, this can return a &amp;quot;Date and Time&amp;quot; in the future or past. IE: if the user&amp;#39;s timezone setting is 12 hours ahead and they enter this value after 12:00PM than the value saved would be for the next day. I ran into an issue before where we were saving now() for a field and writing it to the DB and our DB was set to GMT while on the Appian side it would pull the result set as EST.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get only a date when user enter just a date part in DateTimeField</title><link>https://community.appian.com/thread/49389?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2017 06:09:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9781e4c3-3036-4947-9628-e539006b99d6</guid><dc:creator>annap</dc:creator><description>Afaik, This is not possible. value will not get save till both date and time get entered. If you do not need to save time in your requirement then use date field only.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get only a date when user enter just a date part in DateTimeField</title><link>https://community.appian.com/thread/49388?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2017 05:53:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3e7d86e6-f4fa-413d-9b95-4758832d1344</guid><dc:creator>Rama Thummala</dc:creator><description>&lt;p&gt;&lt;a href="/members/vijayanv"&gt;vijayanv&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Have some default datetime value to display if user hasn&amp;#39;t selected anything.&lt;/p&gt;
&lt;p&gt;Below snippet would help you.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="xml"&gt;a!dateTimeField(
  label: &amp;quot;date and time&amp;quot;,
  value: if(
    isnull(
      ri!datetime
    ),
    now(),
    ri!datetime
  ),
  saveInto: {
    ri!datetime,
    a!save(
      ri!date,
      todate(
        ri!datetime
      )
    )
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get only a date when user enter just a date part in DateTimeField</title><link>https://community.appian.com/thread/49383?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2017 03:37:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:df55a304-2797-4d4f-a34d-edddc8bfb7c6</guid><dc:creator>Jamal Case</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="/members/vijayanv"&gt;vijayanv&lt;/a&gt;&amp;nbsp;,&lt;br /&gt; &lt;br /&gt; A dateTimefield is used for choosing a date and a time while a datefield is just for the date. Not sure what&amp;#39;s your requirement but I would make that dateTimefield required forcing the user to enter a date and time or change that field to a datefield and update your ri!&amp;#39;s to type &amp;quot;Date&amp;quot;. Since your ri!&amp;#39;s are of type &amp;quot;Date and Time&amp;quot;, there&amp;#39;s no possible way that you can save a value of type &amp;quot;date&amp;quot; into an ri! of type &amp;quot;Date and Time&amp;quot;. That ri! will always return &amp;quot;Date and Time&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>