<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Difference between two 'Date and Time Picker' controls</title><link>https://www.infopathdev.com:443/forums/thread/100188.aspx</link><pubDate>Thu, 20 Nov 2014 18:33:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100188</guid><dc:creator>Snowman</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100188.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=100188</wfw:commentRss><description>&lt;p&gt;Hi Jimmy or anyone else who may be able to help me,&lt;/p&gt;&lt;p&gt;I&amp;#39;m using the formula below; however, getting an&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;Expected value type, Actual value: name error&amp;quot;.&amp;nbsp; Any idea what I am doing wrong?&amp;nbsp; Thank you.&lt;/p&gt;&lt;p&gt;concat(substring-before(.,&amp;quot;;&amp;quot;)+substring-after(.,&amp;quot;;&amp;quot;)*((translate(xdDate:AddDays(../my:startDate,substring-before(.,&amp;quot;;&amp;quot;)),&amp;quot;-&amp;quot;,&amp;quot;&amp;quot;)&amp;lt;translate(../my:endDate,&amp;quot;-&amp;quot;,&amp;quot;&amp;quot;))*2-1),&amp;quot;;&amp;quot;,substring-after(.,&amp;quot;;&amp;quot;)div2)&lt;/p&gt;&lt;p&gt;SNOWMAN&lt;/p&gt;</description></item><item><title>Re: Difference between two 'Date and Time Picker' controls</title><link>https://www.infopathdev.com:443/forums/thread/83977.aspx</link><pubDate>Mon, 29 Oct 2012 10:02:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83977</guid><dc:creator>mohamad morshed</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83977.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=83977</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I used it, It was Really useful, Thanks a lot&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Difference between two 'Date and Time Picker' controls</title><link>https://www.infopathdev.com:443/forums/thread/71801.aspx</link><pubDate>Sat, 05 Nov 2011 18:27:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71801</guid><dc:creator>nbarnes</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71801.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71801</wfw:commentRss><description>&lt;p&gt;Thanks for your quick reply Jimmy,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve already got the date working so I just need to add your bit for the time. Looks like I might be making a few forms with dates as a central theme so I&amp;#39;ll definitely look into qRules.&lt;/p&gt;
&lt;p&gt;Thanks again,&lt;/p&gt;
&lt;p&gt;Nick&lt;/p&gt;</description></item><item><title>Re: Difference between two 'Date and Time Picker' controls</title><link>https://www.infopathdev.com:443/forums/thread/71800.aspx</link><pubDate>Sat, 05 Nov 2011 18:18:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71800</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71800.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71800</wfw:commentRss><description>&lt;p&gt;I hope I didn&amp;#39;t get your hopes up too much because I don&amp;#39;t know of a good way to account for business hours and holidays.&amp;nbsp; I was just making sure that wasn&amp;#39;t a requirement.&lt;/p&gt;
&lt;p&gt;What you can do to get the raw difference is:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Use the trick that&amp;#39;s been floating around here to get the number of days between the two dates.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Use my formula to get the difference between the two times (if the time on the start date is earlier in the day than the time on the end date, the result for this will be negative, but this is ok).&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Add 1 and 2 together (making sure to convert them to the same units first).&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;That should give you the result you need.&amp;nbsp; I&amp;#39;ll also point out that &lt;a href="http://www.qdabra.com/en/products/qRules_new.aspx"&gt;qRules&lt;/a&gt; provides an extremely&amp;nbsp;simple command, DateDiff,&amp;nbsp;for determining the difference between two datetimes, along with a whole lot of other cool stuff, and I recommend checking that out if you&amp;#39;re looking to get more out of your InfoPath experience.&lt;/p&gt;</description></item><item><title>Re: Difference between two 'Date and Time Picker' controls</title><link>https://www.infopathdev.com:443/forums/thread/71799.aspx</link><pubDate>Sat, 05 Nov 2011 17:58:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71799</guid><dc:creator>nbarnes</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71799.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71799</wfw:commentRss><description>&lt;p&gt;Within business hours would be great but thats well beyond my Infopath knowledge so I hadnt even considered it!&lt;/p&gt;
&lt;p&gt;If you know how, then that would be awesome but I&amp;#39;m also happy with just raw differences.&lt;/p&gt;</description></item><item><title>Re: Difference between two 'Date and Time Picker' controls</title><link>https://www.infopathdev.com:443/forums/thread/71798.aspx</link><pubDate>Sat, 05 Nov 2011 17:53:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71798</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71798.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71798</wfw:commentRss><description>&lt;p&gt;And are you looking for just a raw difference between two datetimes?&amp;nbsp; Do you need to take into account work hours, weekends and holidays?&lt;/p&gt;</description></item><item><title>Re: Difference between two 'Date and Time Picker' controls</title><link>https://www.infopathdev.com:443/forums/thread/71797.aspx</link><pubDate>Sat, 05 Nov 2011 17:00:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71797</guid><dc:creator>nbarnes</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71797.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71797</wfw:commentRss><description>&lt;p&gt;Hi Jimmy,&lt;/p&gt;
&lt;p&gt;Thanks for getting back to me. The difference between the two dates/times will vary condiserably, some forms might be returned within a couple of hours but others might take several days.&lt;/p&gt;
&lt;p&gt;Nick&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Difference between two 'Date and Time Picker' controls</title><link>https://www.infopathdev.com:443/forums/thread/71796.aspx</link><pubDate>Sat, 05 Nov 2011 16:47:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71796</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71796.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71796</wfw:commentRss><description>&lt;p&gt;Will both of the times always be within the same day?&amp;nbsp; If so, you can use this formula to get the number of minutes between two times:&lt;/p&gt;
&lt;p&gt;60 * (substring(&lt;strong&gt;&lt;u&gt;laterTime&lt;/u&gt;&lt;/strong&gt;, 12, 2) - substring(&lt;strong&gt;&lt;u&gt;earlierTime&lt;/u&gt;&lt;/strong&gt;, 12, 2)) + (substring(&lt;strong&gt;&lt;u&gt;laterTime&lt;/u&gt;&lt;/strong&gt;, 15, 2) - substring(&lt;strong&gt;&lt;u&gt;earlierTime&lt;/u&gt;&lt;/strong&gt;, 15, 2)) + (substring(&lt;strong&gt;&lt;u&gt;laterTime&lt;/u&gt;&lt;/strong&gt;, 18, 2) - substring(&lt;strong&gt;&lt;u&gt;earlierTime&lt;/u&gt;&lt;/strong&gt;, 18, 2)) div 60&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Is that sufficient for what you&amp;#39;re looking for?&lt;/p&gt;</description></item><item><title>Difference between two 'Date and Time Picker' controls</title><link>https://www.infopathdev.com:443/forums/thread/71795.aspx</link><pubDate>Sat, 05 Nov 2011 14:40:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71795</guid><dc:creator>nbarnes</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71795.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71795</wfw:commentRss><description>&lt;p&gt;Hello everyone,&lt;/p&gt;
&lt;p&gt;Im creating a web-enabled Infopath 2010 form which will be used to enter details of IT Support tickets. The form has two &amp;#39;Date and Time Picker&amp;#39; controls:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;TimeRaised&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;TimeRepaired&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;d like the difference between these two fields to be displayed in a read-only text&amp;nbsp;box titled&amp;nbsp;TimeToResolve,&amp;nbsp;so that admin can easily identify the most troublesome support tickets. I&amp;#39;ve found lots of resources covering Date Picker controls, however I cant find anything about calculating differences between two Date and Time Picker field?&lt;/p&gt;
&lt;p&gt;Can anyone help?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Nick&lt;/p&gt;</description></item></channel></rss>