<?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>To display date and time from Database to Appian  irrespective of user Time zone</title><link>https://community.appian.com/discussions/f/rules/22097/to-display-date-and-time-from-database-to-appian-irrespective-of-user-time-zone</link><description>Hi All, 
 We wrote a query to fetch date from one particular entity from Database, but the output(date) differs based on the user time zone. 
 For example , 
 In Database it shows as 10th June 2021,12:06 AM, 
 For GMT time zone user it shows as 10th June</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: To display date and time from Database to Appian  irrespective of user Time zone</title><link>https://community.appian.com/thread/86547?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 13:52:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6ed607e8-e4a2-4f05-9c40-76e1ff6f5119</guid><dc:creator>Jansi J</dc:creator><description>&lt;p&gt;Hi Peter,&lt;/p&gt;
&lt;p&gt;It is working fine now. Thanks a lot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: To display date and time from Database to Appian  irrespective of user Time zone</title><link>https://community.appian.com/thread/86535?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 12:59:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5e030333-d829-41fa-bb4a-858882f30a33</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;I think there&amp;#39;s two things going on here. First, it looks like the datetime is being converted to a date only at some point in your expression. That&amp;#39;s why you&amp;#39;re seeing 12:06 AM in the database and 12:00 AM in Appian. Can you share your expression where you&amp;#39;re using this datetime value?&lt;/p&gt;
&lt;p&gt;Your original question is about showing the results in a timezone - can you clarify what you want to show? Do you want to show the datetime itself without a time zone? Do you expect the values stored in the database are in a time zone other than GMT Technically the result you&amp;#39;re seeing is correct because the database always stores results in GMT and the local time is offset.&lt;/p&gt;
&lt;p&gt;If you do need to do an offset, typically using the local() or gmt() function can get you what you want. For example, I&amp;#39;m currently in EDT - if I run the following expression, it&amp;nbsp;assumes the time provided is in my current time zone and the resulting time is in GMT:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;datetext(
  gmt(
    datetime(2021, 10, 1, 8, 52), 
    &amp;quot;GMT&amp;quot;
  ),
  &amp;quot;M/dd/yyyy h:mm a&amp;quot;
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>