<?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>Function todate() different times</title><link>https://community.appian.com/discussions/f/data/34669/function-todate-different-times</link><description>Hi! Does anyone know how can I fixed the next situation? 
 I want to get the date of a datetime using the function todate() but if the datetime is after 9PM (Chile Time), the result for the function is not the real date but the next day and this should</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Function todate() different times</title><link>https://community.appian.com/thread/133477?ContentTypeID=1</link><pubDate>Mon, 15 Apr 2024 17:04:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6fc91fc6-2243-4c38-b8a8-772e92abf6d8</guid><dc:creator>romiev8844</dc:creator><description>&lt;p&gt;It worked with&amp;nbsp;todate(local(ri!DateTime,&amp;quot;CLT&amp;quot;)), thank you!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Function todate() different times</title><link>https://community.appian.com/thread/133416?ContentTypeID=1</link><pubDate>Mon, 15 Apr 2024 05:40:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6628599a-07f9-4203-9828-13b7003e559f</guid><dc:creator>venkatrea696188</dc:creator><description>&lt;p&gt;Appian Uses GMT as Standard time. Try using below code and pass your respective timezone&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;todate(local(ri!Date,&amp;quot;IST&amp;quot;))&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Function todate() different times</title><link>https://community.appian.com/thread/133415?ContentTypeID=1</link><pubDate>Mon, 15 Apr 2024 05:27:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e2f408b4-96d2-4b99-855e-72cdd839ab7e</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;todate(local(ri!DateTime,&amp;quot;CLT&amp;quot;))&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/members/romiev8844"&gt;romiev8844&lt;/a&gt;&amp;nbsp;&amp;nbsp;Try this&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;datevalue(tostring(ri!DateTime))&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Function todate() different times</title><link>https://community.appian.com/thread/133408?ContentTypeID=1</link><pubDate>Mon, 15 Apr 2024 05:08:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:416fd4a9-fd16-4cf5-a8ba-ad79d3b4b006</guid><dc:creator>romiev8844</dc:creator><description>&lt;p&gt;It didn&amp;#39;t work :( I still getting the next day if the hour is after 9PM&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Function todate() different times</title><link>https://community.appian.com/thread/133407?ContentTypeID=1</link><pubDate>Mon, 15 Apr 2024 05:03:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b84b9113-6f9b-46b0-ab63-107cbe2dbd36</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;Try Using this logic&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;date(
year(ri!DateTime),month(ri!DateTime),day(ri!DateTime)
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>