<?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 and time without timezone</title><link>https://community.appian.com/discussions/f/user-interface/29410/date-and-time-without-timezone</link><description>Hi, 
 
 I have a date field in Form. The selected date i need to pass it to integration service which is a datetime field. For my inputted date to pass i need to convert todatetime to pass into integration. The issue we are seeing is below conversion</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Date and time without timezone</title><link>https://community.appian.com/thread/116721?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2023 07:39:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:36e89e6e-d276-4a9f-8d97-8f20dad4af52</guid><dc:creator>Sameer Ul Haq</dc:creator><description>&lt;p&gt;I understood now. I checked the external system input format and i formatted using text field now its working as expected.&lt;/p&gt;
&lt;p&gt;text(now(), &amp;quot;yyyy-mm-dd&amp;quot;) &amp;amp; &amp;quot;T07:17:16.652&amp;quot;&lt;/p&gt;
&lt;p&gt;Thanks Guys!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date and time without timezone</title><link>https://community.appian.com/thread/116718?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2023 06:40:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bec0db9c-e3f0-4bf0-a0df-096680eafede</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I am taking the risk to repeat myself. There is no date/datetime datatype in JSON!&lt;/p&gt;
&lt;p&gt;Any date/datetime is transformed into a string. That service then needs to be able to decode that specific format. The internet recommends to use the format defined in ISO 8601.&lt;/p&gt;
&lt;p&gt;You will have to discuss with the team developing that service, what format they expect. And you know how to achieve that in Appian.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date and time without timezone</title><link>https://community.appian.com/thread/116717?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2023 06:21:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c2395671-c344-4752-8266-6124d4e2c395</guid><dc:creator>Sameer Ul Haq</dc:creator><description>&lt;p&gt;When i pass as you just wrote into external system input got the error as below. Its expecting Date Time instead of a text.Internally the Rest endpoint of the service will make a call to Soap Endpoint of .Net version which expects a datatype.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1690266040315v1.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date and time without timezone</title><link>https://community.appian.com/thread/116705?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2023 15:27:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1ac74575-e2a7-42f9-aed8-42a6c8046a97</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;There are no data types in JSON. Everything is a string. So, you can just use the text function to format your date in any way you want.&lt;/p&gt;
&lt;p&gt;BTW, looking at the&amp;nbsp;ISO 8601 standard for date formats and the typical way JSON-HTTP&amp;nbsp;APIs are built, IMHO this API should not have an issue with an ISO format.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!toJson(
  a!map(
    value: &amp;quot;some&amp;quot;,
    date: text(now(), &amp;quot;yyyy-mm-dd&amp;quot;) &amp;amp; &amp;quot; 12:00 AM&amp;quot;
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date and time without timezone</title><link>https://community.appian.com/thread/116704?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2023 14:51:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bb5f0858-1e6a-4aee-8793-205abcc3dd62</guid><dc:creator>Sameer Ul Haq</dc:creator><description>&lt;p&gt;The external system is a .Net web service rest endpoint which takes a DateTime field.Since, In Appian form we fill just a date we needed to convert to Date and Time in appian to pass to this external integration thats where during conversion its appending timezone &lt;span&gt;GMT+00:00 which gets appended to the field which looks like&amp;nbsp;&lt;strong&gt;2023-07-20T00:00:00Z&amp;nbsp;&lt;/strong&gt;where Z is a timeZone which we never wanted in our data.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Ideal ask is the appian should pass&amp;nbsp;7/20/2023 12:00 AM&amp;nbsp;only Date and Time to external system.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If i understood you correctly, You are asking me to format the date using text field as &amp;quot;7/20/2023 12:00 AM&amp;quot; and pass to external system which accepts DateTime field? How to achieve this?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date and time without timezone</title><link>https://community.appian.com/thread/116610?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2023 13:48:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:294ed93e-dc6c-4579-a97a-14bcc39ada05</guid><dc:creator>jamesm4933</dc:creator><description>&lt;p&gt;I think what Stefan, is trying to ask, is what does your integration actually consume?&amp;nbsp; If it is in fact an external system, then it is most definitely not going to be an Appian data type.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It&amp;#39;s likely just text.&amp;nbsp; If that&amp;#39;s the case, formatting your date correctly should be all you need to do.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date and time without timezone</title><link>https://community.appian.com/thread/116583?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2023 06:29:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2dd87f43-0c2a-4f9c-99b9-4fb913f1c9cd</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Is there any actual issue with this? In 13+ years with Appian I never had any problem with this. Where did you get your doubts?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date and time without timezone</title><link>https://community.appian.com/thread/116580?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2023 05:53:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fd65abb6-2a6a-4278-a6ed-bb00ac3b9993</guid><dc:creator>Sameer Ul Haq</dc:creator><description>&lt;p&gt;I am not just referring to textual representation which we can modify using text() function.However, I need actual datetime returned by the todatetime() function.It should not contain timezone appeneded to it. When we bring data to appian to display we may need to convert to appian equivalent which is appending&amp;nbsp; timezone to our datetime fields , we are ok if it can be reconverted back to exact datetime without appending timezone.&lt;/p&gt;
&lt;p&gt;Looking forward for a response regarding date and time without timezone conversion from&amp;nbsp;&lt;span&gt;date and time&amp;nbsp;with timezone.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date and time without timezone</title><link>https://community.appian.com/thread/116524?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2023 09:22:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:15c3f7ea-e56a-454e-af41-0786d64be71e</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;The issue here is, that there is the value and its textual representation on the screen. And these are two different things.&lt;/p&gt;
&lt;p&gt;The value itself is defined by the data type, and the visual by a formatting function. By default Appian uses some standard Java functions to do that.&lt;/p&gt;
&lt;p&gt;If that is not what you want, change the type and/or the formatting.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date and time without timezone</title><link>https://community.appian.com/thread/116523?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2023 09:14:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48b0b32e-c7bf-44d8-baf9-a7c261b0a59c</guid><dc:creator>Sameer Ul Haq</dc:creator><description>&lt;p&gt;May be i am asking question in an incorrect way. I have a date which needs to be converted into just date and time without any timezone appended to it.&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;Actual&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span class="CollapsibleOutputNode---print_value"&gt;7/20/2023 12:00 AM GMT+00:00&lt;/span&gt;&lt;span class="CollapsibleOutputNode---print_element_type"&gt;(Date and Time)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span class="CollapsibleOutputNode---print_element_type"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;&lt;span class="CollapsibleOutputNode---print_element_type"&gt;Expected&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span class="CollapsibleOutputNode---print_value"&gt;7/20/2023 12:00 AM &lt;span style="color:#ffffff;"&gt;GMT+00:00&lt;/span&gt;&lt;/span&gt;&lt;span class="CollapsibleOutputNode---print_element_type"&gt;(Date and Time)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date and time without timezone</title><link>https://community.appian.com/thread/116521?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2023 08:58:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:42d0aef7-0a14-4a69-8dd3-6b487bb70a46</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;This is just how it is displayed. But when you need more control on the format, you can also use the text() function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date and time without timezone</title><link>https://community.appian.com/thread/116520?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2023 08:51:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:55b0ca29-c2c8-46f3-a315-075ebd0c9ab0</guid><dc:creator>Sameer Ul Haq</dc:creator><description>&lt;p&gt;I returns&amp;nbsp;&lt;span&gt;&lt;span class="CollapsibleOutputNode---print_value"&gt;7/20/2023 12:00 AM GMT+00:00&lt;/span&gt;&lt;span class="CollapsibleOutputNode---print_element_type"&gt;(Date and Time) expected is&amp;nbsp;&lt;span class="CollapsibleOutputNode---print_value"&gt;7/20/2023 12:00 AM&lt;/span&gt;(Date and Time)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1689842975867v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date and time without timezone</title><link>https://community.appian.com/thread/116517?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2023 08:24:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:acca8c8e-e3ea-4dd4-bbf6-5f4503a1b1e2</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;The gmt() function might help you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>