<?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>Date difference in the screen, database vs RecordType</title><link>https://community.appian.com/discussions/f/new-to-appian/28590/date-difference-in-the-screen-database-vs-recordtype</link><description>Hi, 
 When I try to add date using Today() ,value is saving into the database properly (Refer to the below attached screen shot) 
 
 
 Whereas when I try to load into the grid using RecordType, it was showing like below. Any advises on this please.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Date difference in the screen, database vs RecordType</title><link>https://community.appian.com/thread/112296?ContentTypeID=1</link><pubDate>Sat, 06 May 2023 09:00:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a05c98f8-b059-43c8-8006-7339a6e43368</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Maybe this blog post helps you:&amp;nbsp;&lt;a href="https://appian.rocks/2023/02/13/working-with-time-in-appian/"&gt;appian.rocks/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date difference in the screen, database vs RecordType</title><link>https://community.appian.com/thread/112292?ContentTypeID=1</link><pubDate>Sat, 06 May 2023 03:09:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4f0adbde-73ce-4a4f-b22e-43871c5d3dd8</guid><dc:creator>swapnar6405</dc:creator><description>&lt;p&gt;gmt(local(now(), &amp;quot;EDT&amp;quot;)) is returning&amp;nbsp;&lt;span&gt;&lt;span class="CollapsibleOutputNode---print_value"&gt;5/5/2023 11:06 PM EDT and this is matching with my local time.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span class="CollapsibleOutputNode---print_value"&gt;When I ran the below code in an interface, I am getting 05/06/2023. Still not understood what is happening.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span class="CollapsibleOutputNode---print_value"&gt;a!dateField(&lt;br /&gt; label: &amp;quot; Date&amp;quot;,&lt;br /&gt; labelPosition: &amp;quot;ABOVE&amp;quot;,&lt;br /&gt; helpTooltip: &amp;quot; Date&amp;quot;,&lt;br /&gt; value: gmt(local(now(), &amp;quot;EDT&amp;quot;)),&lt;br /&gt; saveInto: local!date,&lt;br /&gt; /*disabled: true,*/&lt;br /&gt; validations: {}&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date difference in the screen, database vs RecordType</title><link>https://community.appian.com/thread/112289?ContentTypeID=1</link><pubDate>Fri, 05 May 2023 18:00:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5aedf6a6-7369-40ee-ad13-5f9bc4570302</guid><dc:creator>sanchitg0002</dc:creator><description>&lt;p&gt;As&amp;nbsp;Mike and Laurens already explained that Appian adds local timezone offset to the datetime, that&amp;#39;s why you are seeing the difference. You can wrap the value from record in gmt() to remove the local timezone offset, try gmt() on today() also to see the difference.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date difference in the screen, database vs RecordType</title><link>https://community.appian.com/thread/112288?ContentTypeID=1</link><pubDate>Fri, 05 May 2023 17:59:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fb5f0ffc-b51b-4cae-a867-9aeba221ac7a</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;It depends on whether the data type you&amp;#39;re saving is DATE or if it&amp;#39;s DATETIME.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date difference in the screen, database vs RecordType</title><link>https://community.appian.com/thread/112287?ContentTypeID=1</link><pubDate>Fri, 05 May 2023 17:53:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:89de9a1f-20f4-4d33-adf4-0273a1d7e50e</guid><dc:creator>swapnar6405</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;Appian DateField with value as today() is showing as 5/5/2023.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/62/pastedimage1683308857705v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/62/pastedimage1683308658776v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;When I saved the same value in the database, it was saving in the db also the same. 5/5/2023.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/62/pastedimage1683308951047v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Where as, then I try to retrieve using the RecordType and show in the grid, then only it was showing like&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/62/pastedimage1683309045827v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t not understand, appian today() function is giving 5/5/2023 and database is also storing same value, but when try to show the same field value in the grid, it was showing 5/4/2023.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So, do I need convert date to required format ONLY while displaying or can I handle this through any setting at Appian end.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please advise.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date difference in the screen, database vs RecordType</title><link>https://community.appian.com/thread/112278?ContentTypeID=1</link><pubDate>Fri, 05 May 2023 15:43:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2678ee20-2c5d-43a4-b655-1f67f3c57318</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;But it&amp;#39;s not a difference in dates, it&amp;#39;s actually the interpretation as Laurens already pointed out.&lt;/p&gt;
&lt;p&gt;The Appian DB stores all datetimes in GMT; when you display this info on the front end, Appian always auto-converts the GMT datetime value into the local datetime (which may or may not evaluate to the same actual date, since GMT may or may not be across the date boundary for different values).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date difference in the screen, database vs RecordType</title><link>https://community.appian.com/thread/112275?ContentTypeID=1</link><pubDate>Fri, 05 May 2023 14:59:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e5fdacba-27d6-41ee-aa8b-c2e8112c673e</guid><dc:creator>swapnar6405</dc:creator><description>&lt;p&gt;The issue is not with formatting. We can format different way.&lt;/p&gt;
&lt;p&gt;Issue is with difference in dates.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date difference in the screen, database vs RecordType</title><link>https://community.appian.com/thread/112271?ContentTypeID=1</link><pubDate>Fri, 05 May 2023 14:17:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3633ef00-8fd9-40eb-a705-8a5150a842b1</guid><dc:creator>laurensw</dc:creator><description>&lt;p&gt;This is default Appian behaviour for interpreting the DB value given the field type.&lt;/p&gt;
&lt;p&gt;You may use text() to format the value to your likings.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>