<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Date format in date control field type</title><link>https://www.infopathdev.com:443/forums/thread/104310.aspx</link><pubDate>Mon, 12 Oct 2015 13:27:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104310</guid><dc:creator>davydcondy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104310.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=104310</wfw:commentRss><description>The date field does not work in an InfoPath, SQL external list.
&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
The date and time field does not matter about the time, but it would be great to not output the time. Only the date input for the date and time data type is important; therefore, 081515 to 8/15/2015 ... 81515 to 8/15/2015.. etc. 
&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;


&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;donstephen:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;I am unable to guarantee if what you need will work, but we can give it a shot - however,&amp;nbsp;chaging the data type to date and time would also&amp;nbsp;require entering the time as well. The entry 41315 to get 4/13/2015 would now need to have a specific time included, which would mean chaging the validation rule&amp;#39;s conditions (pattern and string length logic), as well as the formula to extract the date.&lt;br /&gt;&lt;br /&gt;Are you encountering issues if the Date field is not set to Date and Time? What would be the entry to the date and time field if we are to add time?&lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;</description></item><item><title>Re: Date format in date control field type</title><link>https://www.infopathdev.com:443/forums/thread/104302.aspx</link><pubDate>Mon, 12 Oct 2015 05:04:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104302</guid><dc:creator>donstephen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104302.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=104302</wfw:commentRss><description>&lt;p&gt;I am unable to guarantee if what you need will work, but we can give it a shot - however,&amp;nbsp;chaging the data type to date and time would also&amp;nbsp;require entering the time as well. The entry 41315 to get 4/13/2015 would now need to have a specific time included, which would mean chaging the validation rule&amp;#39;s conditions (pattern and string length logic), as well as the formula to extract the date.&lt;br /&gt;&lt;br /&gt;Are you encountering issues if the Date field is not set to Date and Time? What would be the entry to the date and time field if we are to add time?&lt;/p&gt;</description></item><item><title>Re: Date format in date control field type</title><link>https://www.infopathdev.com:443/forums/thread/104293.aspx</link><pubDate>Sat, 10 Oct 2015 16:30:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104293</guid><dc:creator>davydcondy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104293.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=104293</wfw:commentRss><description>Everything works! However, I want to used the &amp;quot; Date and Time (dateTime) &amp;quot; data type not the date data type. 
&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
Can you create an example with using the  Date and Time (dateTime) &amp;quot; data type? possibly using the same rules. 
&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Date format in date control field type</title><link>https://www.infopathdev.com:443/forums/thread/104280.aspx</link><pubDate>Thu, 08 Oct 2015 23:56:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104280</guid><dc:creator>donstephen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104280.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=104280</wfw:commentRss><description>&lt;p&gt;To hide the DateValue field from display, all you need to do is to delete it from the display. The field will still hold the value since it is still in the schema.&lt;br /&gt;&lt;br /&gt;One thing I noticed is that on the second action rule, the formula was not inserted as a function. You will need to click the&amp;nbsp;&lt;strong&gt;&lt;em&gt;fx&lt;/em&gt;&lt;/strong&gt; button and enter the formula there.&lt;/p&gt;&lt;p&gt;Please try this updated test form.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Date format in date control field type</title><link>https://www.infopathdev.com:443/forums/thread/104242.aspx</link><pubDate>Tue, 06 Oct 2015 14:01:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104242</guid><dc:creator>davydcondy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104242.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=104242</wfw:commentRss><description>When I enter (51615) the dates does not output (5/16/2015), the output is actually the following: concat(&amp;quot;20&amp;quot;, substring(translate(., &amp;quot;/&amp;quot;, &amp;quot;&amp;quot;), 4, 2), &amp;quot;-0&amp;quot;, substring(translate(., &amp;quot;/&amp;quot;, &amp;quot;&amp;quot;), 1, 1), &amp;quot;-&amp;quot;, substring(translate(., &amp;quot;/&amp;quot;, &amp;quot;&amp;quot;), 2, 2)).
&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
The second fields also does not hide. I have been trying to created a form, so an action reverts the error (2015-16-5).
&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
Let me know for other ideas.
&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Date format in date control field type</title><link>https://www.infopathdev.com:443/forums/thread/104237.aspx</link><pubDate>Tue, 06 Oct 2015 02:09:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104237</guid><dc:creator>donstephen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104237.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=104237</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;It appears that the&amp;nbsp;Date field is&amp;nbsp;using the formula as the default value, which is causing an issue on the concatenation.&lt;br /&gt;&lt;br /&gt;I have attached an updated form&amp;nbsp;which uses a&amp;nbsp;DateValue field (this is supposed to be hidden from the display)&amp;nbsp;- this field uses the formula from the previous post, you could use this to submit the date value to your database. Could you try using the approach from the form attached and let me know how it goes? &lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;</description></item><item><title>Re: Date format in date control field type</title><link>https://www.infopathdev.com:443/forums/thread/104233.aspx</link><pubDate>Mon, 05 Oct 2015 20:14:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104233</guid><dc:creator>davydcondy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104233.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=104233</wfw:commentRss><description>I have tried the formula in the Date Picker Properties for the value, but it did not work. I am working on building a formula as well. 
&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
See attachment for the occurring error in the sample form except it is a local form and not from a external list.
&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Date format in date control field type</title><link>https://www.infopathdev.com:443/forums/thread/104222.aspx</link><pubDate>Sat, 03 Oct 2015 06:33:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104222</guid><dc:creator>donstephen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104222.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=104222</wfw:commentRss><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;When using the InfoPath date picker, the actual value (for date time data type) would be like this:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://s15.postimg.org/l5x6qnjy3/datetime.jpg" alt="" /&gt;&lt;/p&gt;&lt;p&gt;The actual value underneath the date picker is different from what your SQL database recognizes. I believe the date and time&amp;nbsp;format for SQL is 2015-09-22 00:00:00.000. Could you try using a substring to get the dat only from infopath and concatenate the value with&amp;nbsp;&amp;nbsp;00:00:00.000 then try submitting it?&lt;br /&gt;&lt;br /&gt;You formula should be similar to:&lt;br /&gt;&lt;br /&gt;concat(substring-before(&lt;u&gt;dateField&lt;/u&gt;,&amp;quot;T&amp;quot;), &amp;quot; 00:00:00.000&amp;quot;)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Date format in date control field type</title><link>https://www.infopathdev.com:443/forums/thread/104191.aspx</link><pubDate>Wed, 30 Sep 2015 21:30:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104191</guid><dc:creator>davydcondy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104191.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=104191</wfw:commentRss><description>Hi donstephen,
&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
Since SQL databases only use date and time (data types), I am testing the same rules and conditions. 
&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
The rules and rule condition works with the date picker; however, the input recognition is not working. 
&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
The date is backwards. See image below.
&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;



&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;donstephen:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;Hi Davydcondy,&lt;br /&gt;&lt;br /&gt;I am currently unable to determine the issue. Could you provide more details and also the error you are receiving upon saving? &lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;</description></item><item><title>Re: Date format in date control field type</title><link>https://www.infopathdev.com:443/forums/thread/104180.aspx</link><pubDate>Wed, 30 Sep 2015 14:45:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104180</guid><dc:creator>davydcondy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104180.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=104180</wfw:commentRss><description>I am not getting an error. The issue that I am having is by connecting two fields to mask the original value from the external content type list. After publishing the form with the rules, the input data will not be save to the list.</description></item><item><title>Re: Date format in date control field type</title><link>https://www.infopathdev.com:443/forums/thread/104136.aspx</link><pubDate>Fri, 25 Sep 2015 06:44:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104136</guid><dc:creator>donstephen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104136.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=104136</wfw:commentRss><description>&lt;p&gt;Hi Davydcondy,&lt;br /&gt;&lt;br /&gt;I am currently unable to determine the issue. Could you provide more details and also the error you are receiving upon saving? &lt;/p&gt;</description></item><item><title>Re: Date format in date control field type</title><link>https://www.infopathdev.com:443/forums/thread/104131.aspx</link><pubDate>Thu, 24 Sep 2015 20:35:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104131</guid><dc:creator>davydcondy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104131.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=104131</wfw:commentRss><description>&lt;br /&gt;&lt;br /&gt;The rules with action formulas work; however, I am unable to save the values. &lt;br /&gt;
&lt;br /&gt;Do you have any solution ideas for the occurring issue?&lt;br /&gt;
&lt;br /&gt;</description></item><item><title>Re: Date format in date control field type</title><link>https://www.infopathdev.com:443/forums/thread/104108.aspx</link><pubDate>Wed, 23 Sep 2015 15:40:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104108</guid><dc:creator>davydcondy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104108.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=104108</wfw:commentRss><description>It has been working! Thank you so much for the advice and contribution.
&lt;br /&gt;&lt;br /&gt;
I have another issue with a fields using the whole number (integer) for Currency Format. Please see the link: &lt;a href="http://www.infopathdev.com/forums/p/30509/104107.aspx#104107"&gt;http://www.infopathdev.com/forums/p/30509/104107.aspx#104107&lt;/a&gt;
&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Date format in date control field type</title><link>https://www.infopathdev.com:443/forums/thread/104097.aspx</link><pubDate>Tue, 22 Sep 2015 17:16:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104097</guid><dc:creator>donstephen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104097.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=104097</wfw:commentRss><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Could you try using the formula:&lt;br /&gt;&lt;br /&gt;substring-before(&lt;strong&gt;&lt;u&gt;field1&lt;/u&gt;&lt;/strong&gt;, &amp;quot;T&amp;quot;)&lt;br /&gt;&lt;br /&gt;where &lt;strong&gt;&lt;u&gt;field1&lt;/u&gt;&lt;/strong&gt; is the field which holds tne date and time value.&lt;br /&gt;&lt;br /&gt;What this formula will do is return all values before &amp;quot;T&amp;quot; and should return the date value only.&lt;/p&gt;&lt;p&gt;Hope this helps.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Date format in date control field type</title><link>https://www.infopathdev.com:443/forums/thread/104096.aspx</link><pubDate>Tue, 22 Sep 2015 16:58:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104096</guid><dc:creator>davydcondy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104096.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=104096</wfw:commentRss><description>Thank you so much, because it was becoming complicated. This strategy worked great! 
&lt;br /&gt;&lt;br /&gt;
However, I am also using the form to view data from a list while using the InfoPath form. 
&lt;br /&gt;&lt;br /&gt;
The Microsoft SQL only has the date and time format as  (5/15/2014 8:00 PM) and output in the InfoPath form as 2014-05-15T20:00:00
&lt;br /&gt;&lt;br /&gt;
What would be another expression or method to only take the  2014-05-15 and remove anything after that such as T20:00:00. Because once I delete (T20:00:00), the date will automatically configure to 5/15/2014.
&lt;br /&gt;&lt;br /&gt;
I have attached an image of the issues, see below.








&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;donstephen:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;Hi Davydcondy,&lt;br /&gt;&lt;br /&gt;I have attached a form which fixes the date format for the text box.&lt;br /&gt;&lt;br /&gt;It looks like there will be two scenarios if the date entered will have different string lengths (041315 or 41315). If you check the rules on field1, you will notice two rules that will run depending on the scenario stated.&lt;/p&gt;&lt;p&gt;Please check if this approach would work for you.&amp;nbsp;&lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;</description></item></channel></rss>