<?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>Set value to a date time variable on saving a date field</title><link>https://community.appian.com/discussions/f/user-interface/9006/set-value-to-a-date-time-variable-on-saving-a-date-field</link><description>Hi All, I have a scenario where there is a date field and once a date is entered, a date and time field should replace a date field with a defaulted time and the date. If I remove either date or time in the date time field, it should again go back to</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Set value to a date time variable on saving a date field</title><link>https://community.appian.com/thread/72824?ContentTypeID=1</link><pubDate>Tue, 24 Mar 2020 12:11:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6960838d-43a3-44c7-bc66-5cf7aa06747d</guid><dc:creator>bhargavip0001</dc:creator><description>&lt;p&gt;Hi Arjun, did you find solution for this issue ? facing the same issue here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set value to a date time variable on saving a date field</title><link>https://community.appian.com/thread/40522?ContentTypeID=1</link><pubDate>Mon, 19 Dec 2016 07:16:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:12883492-c16d-4752-b8f9-f0b63c9f194d</guid><dc:creator>arjunv</dc:creator><description>Sure.Enabled Languages are &lt;br /&gt;1.  English (en) [en_US]&lt;br /&gt;2.  English (en) [en_GB]. &lt;br /&gt;Primary Language is English (en) [en_GB]&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set value to a date time variable on saving a date field</title><link>https://community.appian.com/thread/40521?ContentTypeID=1</link><pubDate>Mon, 19 Dec 2016 07:12:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8b6e378a-2d65-4b33-90f3-764c834dad6b</guid><dc:creator>Sally Mason</dc:creator><description>Thanks for the update. Can you confirm in/designer under System &amp;gt; Internationalization what language settings are in effect as well for the user testing the code?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set value to a date time variable on saving a date field</title><link>https://community.appian.com/thread/40519?ContentTypeID=1</link><pubDate>Mon, 19 Dec 2016 06:16:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cc73699e-ca47-4815-a76c-0c9b5080f974</guid><dc:creator>arjunv</dc:creator><description>Thanks. we have updated to the latest hotfix and find that it still exists.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set value to a date time variable on saving a date field</title><link>https://community.appian.com/thread/40400?ContentTypeID=1</link><pubDate>Thu, 15 Dec 2016 08:19:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0d28084c-a1f9-454f-8bd8-122c846b1873</guid><dc:creator>Sally Mason</dc:creator><description>Thank you, I will follow up with testing on that build. I notice though, you are a couple of hotfixes behind too, its always best to keep update, sometimes even the issue, if it does exist, may already be resolved.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set value to a date time variable on saving a date field</title><link>https://community.appian.com/thread/40396?ContentTypeID=1</link><pubDate>Thu, 15 Dec 2016 06:59:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:41df9173-ac01-4b30-88da-19d3efd66a8a</guid><dc:creator>arjunv</dc:creator><description>Please find the attached build.info &lt;br /&gt;&lt;p&gt;&lt;a href="/cfs-filesystemfile/__key/communityserver-discussions-components-files/13/build.info"&gt;build.info&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set value to a date time variable on saving a date field</title><link>https://community.appian.com/thread/40291?ContentTypeID=1</link><pubDate>Mon, 12 Dec 2016 11:32:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:53083e01-5c32-40f1-b52a-82c43c6af79d</guid><dc:creator>arjunv</dc:creator><description>Yes I&amp;#39;m able to reproduce this on a 7.11 as well as on cloud. I will share the build.info&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set value to a date time variable on saving a date field</title><link>https://community.appian.com/thread/40283?ContentTypeID=1</link><pubDate>Mon, 12 Dec 2016 07:46:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cefe94ca-cba7-4aa3-aa53-ff318292901f</guid><dc:creator>Sally Mason</dc:creator><description>I have tested on 16.2, 16.3 - which version, including build.info are you able to reproduce this so we can investigate further?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set value to a date time variable on saving a date field</title><link>https://community.appian.com/thread/40103?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2016 12:08:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bfd52264-bfe6-40f4-9ffb-53d9e4bfa5e5</guid><dc:creator>rodgraham</dc:creator><description>@Sally what version are you using I can reproduce @arjunv's issue - the variables are set correctly but the value displayed in the date time field is the previous value. Pick a date say today, then remove the time, enter a new date say tomorrow. The variables show tomorrow but the value displayed is today&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set value to a date time variable on saving a date field</title><link>https://community.appian.com/thread/40102?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2016 10:58:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7ed65866-5ce8-4924-a2e7-9a1bef20df57</guid><dc:creator>Ravi</dc:creator><description>I guess it&amp;#39;s the default behavior of datetime field&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set value to a date time variable on saving a date field</title><link>https://community.appian.com/thread/40101?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2016 08:37:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:132c9592-983e-4f3c-a004-7f6ba8e9a734</guid><dc:creator>Sally Mason</dc:creator><description>Hmm.. using the code supplied, I cannot reproduce the as described: I select a date, the date in text changes to the selected, I choose a new date, the new date is saved, the hours stay the same.. as expected?&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="/cfs-filesystemfile/__key/communityserver-discussions-components-files/13/time_2D00_test.png"&gt;&lt;img src="/cfs-filesystemfile/__key/communityserver-discussions-components-files/13/time_2D00_test.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set value to a date time variable on saving a date field</title><link>https://community.appian.com/thread/40096?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2016 07:11:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:18f9983b-6cd6-4745-bef0-fe7b2729811a</guid><dc:creator>arjunv</dc:creator><description>PFA&lt;br /&gt;&lt;p&gt;&lt;a href="/cfs-filesystemfile/__key/communityserver-discussions-components-files/13/DateTime.txt"&gt;DateTime.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set value to a date time variable on saving a date field</title><link>https://community.appian.com/thread/40094?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2016 06:56:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ce9b9af8-7c7d-4a31-bffb-1b794a259aeb</guid><dc:creator>Sally Mason</dc:creator><description>Please attach a copy of the current SAIL code for review?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set value to a date time variable on saving a date field</title><link>https://community.appian.com/thread/40093?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2016 06:47:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3b744352-68ef-4c8b-be68-65b21e7d5102</guid><dc:creator>arjunv</dc:creator><description>Thanks Sally, the issue with &amp;quot;Could not cast from Time to Date and Time with Timezone.&amp;quot; is fixed in the date field by setting hours with timezone. However once the date time field appears with a default value and If I remove either date or time, the date field has to appear with empty date. When I choose another date, the date and time field appears with date entered the previous time.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="/cfs-filesystemfile/__key/communityserver-discussions-components-files/13/0385.DateTime.PNG"&gt;&lt;img src="/cfs-filesystemfile/__key/communityserver-discussions-components-files/13/0385.DateTime.PNG" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set value to a date time variable on saving a date field</title><link>https://community.appian.com/thread/40091?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2016 06:29:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:95ff39a4-cf82-426a-83b5-f10dc91c9275</guid><dc:creator>Sally Mason</dc:creator><description>Also, when using GMT, you should specify the zone if you are not GMT 0. Also note the format Appian expects for the time: am/pm, not 24:00hr time. &lt;br /&gt;&lt;br /&gt;Eg for the 7th of December at 1pm Eastern Standard Time (GMT-05:00) would be:&lt;br /&gt;gmt(todatetime(&amp;quot;12/07/2016 1:00 pm&amp;quot;), &amp;quot;EST&amp;quot;)&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set value to a date time variable on saving a date field</title><link>https://community.appian.com/thread/40090?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2016 06:15:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c448ea8f-fc04-4b23-8331-8116a7295e58</guid><dc:creator>Sally Mason</dc:creator><description>It is caused by adding the hours - in the first instance, you are selecting a date from a date field which has no time component. In the second part where you are saving this value, it cannot be cast and throws the error: &lt;br /&gt;&amp;quot;Could not cast from Time to Date and Time with Timezone.&amp;quot;&lt;br /&gt;&lt;br /&gt;For this to work, the first date should also be datetime, not just time, but with the hours set to 00:00 and include the timezone too.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>