<?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>Issue with datetext() conversion</title><link>https://community.appian.com/discussions/f/general/38161/issue-with-datetext-conversion</link><description>Can someone explain why datetext() is returning 2022-11-30 given the input of the date 12/1/2022. I came across this thread which states datetext() is no longer supported however it appears within the latest (24.4) All Functions list within Appian. community</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Issue with datetext() conversion</title><link>https://community.appian.com/thread/143645?ContentTypeID=1</link><pubDate>Fri, 13 Dec 2024 03:40:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:88920c6b-5a38-46f9-aaf4-932cf773408b</guid><dc:creator>Sandhyab4212</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="/members/haseeb.shuaib"&gt;haseeb.shuaib&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If we want to convert date into specific format, then you can also use text() function, but if you want to use datetext() then use gmt() function to convert into timezone, then you will get the expected output.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;eg: text(&lt;br /&gt; now(),&lt;br /&gt; &amp;quot;yyyy-mm-dd&amp;quot;&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with datetext() conversion</title><link>https://community.appian.com/thread/143635?ContentTypeID=1</link><pubDate>Thu, 12 Dec 2024 17:53:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:95442221-6b91-4ae7-95b6-4e915127fb50</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="84737" url="~/discussions/f/general/38161/issue-with-datetext-conversion"]datetext() is returning 2022-11-30 given the input of the date 12/1/2022[/quote]
&lt;p&gt;As noted in Mathieu&amp;#39;s link, wrap the date in gmt().&amp;nbsp; dateText() is formatting the date value stored in the variable which is &amp;quot;12/1 at 12:00 AM GMT&amp;quot;, which in any further-west timezone will resolve as sometime on the evening of 11/30.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with datetext() conversion</title><link>https://community.appian.com/thread/143634?ContentTypeID=1</link><pubDate>Thu, 12 Dec 2024 17:40:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4be2c3da-3794-46ee-afb2-a91f93b37038</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;Perhaps it is due to this: &lt;a href="https://community.appian.com/support/w/kb/575/kb-1344-datetext-returns-one-day-before-expected-date#:~:text=When%20a%20user%20timezone%20is,prior%20to%20the%20expected%20date."&gt;community.appian.com/.../kb-1344-datetext-returns-one-day-before-expected-date&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>