<?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>InfoPath 2010</title><link>https://www.infopathdev.com:443/forums/142.aspx</link><description>Are you exploring new features coming up in 2010? Share information and ask questions here!</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Working out time difference between two fields.</title><link>https://www.infopathdev.com:443/forums/thread/119536.aspx</link><pubDate>Mon, 30 Jul 2018 15:08:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119536</guid><dc:creator>Travisty2520</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119536.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=119536</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello Patrick,&lt;/p&gt;&lt;p&gt;&amp;nbsp;How do I do this if I need them to be Date/Time fields as the errors&amp;nbsp;last over several days&amp;nbsp;I also need it to exclude weekends if possible&lt;/p&gt;</description></item><item><title>Re: Working out time difference between two fields.</title><link>https://www.infopathdev.com:443/forums/thread/87870.aspx</link><pubDate>Sun, 10 Mar 2013 18:52:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87870</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87870.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=87870</wfw:commentRss><description>&lt;p&gt;The horrid red bold dotted line is because the field is a date-time when you just want time. Double click the fields in the taskpane and change from date-time to just time.&lt;/p&gt;&lt;p&gt;You should be able to just remove the colon from the time using translate(field,&amp;quot;:&amp;quot;,&amp;quot;&amp;quot;) and then subtract one from the other. So, if field1 and field2 are time formats and you want field3 to be the difference (where field3 is a number). Just double click field3 and add a default value that is something like this: translate(../my:field2, &amp;quot;:&amp;quot;, &amp;quot;&amp;quot;) - translate(../my:field1, &amp;quot;:&amp;quot;, &amp;quot;&amp;quot;).&lt;/p&gt;</description></item><item><title>Working out time difference between two fields.</title><link>https://www.infopathdev.com:443/forums/thread/87612.aspx</link><pubDate>Sun, 03 Mar 2013 19:45:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87612</guid><dc:creator>Zeb Ahmed</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87612.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=87612</wfw:commentRss><description>&lt;p&gt;Hello all,
I have three fields in a form:&lt;/p&gt;&lt;p&gt;StartTime&lt;br /&gt;EndTime&lt;br /&gt;Duration&lt;/p&gt;&lt;p&gt;I&amp;#39;m trying to calculate in the Duration field the time difference between the times entered in StartTime and EndTime.&lt;/p&gt;&lt;p&gt;e.g. If StartTime is 15:00 and EndTime is 15:30 the Duration field should populate with 00:30&lt;/p&gt;&lt;p&gt;Except I can&amp;#39;t figure out how to do this, and the one link I found on here: &lt;a href="http://www.infopathdev.com/forums/p/18516/66036.aspx"&gt;http://www.infopathdev.com/forums/p/18516/66036.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;KINDA works, but for some reason puts a horrid red bold dotted line around the Duration field. I don&amp;#39;t know why it&amp;#39;s doing this because there are no rules on that field that would cause this.&lt;/p&gt;&lt;p&gt;Help? &lt;/p&gt;&lt;p&gt;I&amp;#39;ve tried several guides but can&amp;#39;t figure it out.. really the above link was the closest to working for me, except for that horrid red dotted line.&lt;/p&gt;&lt;p&gt;&lt;span style="text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;float:none;white-space:normal;font-size-adjust:none;font-stretch:normal;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;"&gt;This confused the *beep!* out of me :(&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br style="text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal;font-size-adjust:none;font-stretch:normal;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" /&gt;&lt;a style="margin:0px;padding:0px;outline:0px;border:0px currentColor;text-transform:none;text-indent:0px;letter-spacing:normal;text-decoration:none;word-spacing:0px;vertical-align:baseline;white-space:normal;font-size-adjust:none;font-stretch:normal;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" href="http://www.linkedin.com/redirect?url=http%3A%2F%2Fblogs%2Emsdn%2Ecom%2Fb%2Finfopath%2Farchive%2F2007%2F02%2F21%2Fcalculating-elapsed-time-without-code%2Easpx&amp;amp;urlhash=XOoo&amp;amp;_t=tracking_anet" rel="nofollow" target="blank"&gt;http://blogs.msdn.com/b/infopath/archive/2007/02/21/calculating-elapsed-time-without-code.aspx&lt;/a&gt;&lt;span style="text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;float:none;white-space:normal;font-size-adjust:none;font-stretch:normal;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;"&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br style="text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal;font-size-adjust:none;font-stretch:normal;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" /&gt;&lt;br style="text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal;font-size-adjust:none;font-stretch:normal;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" /&gt;&lt;span style="text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;float:none;white-space:normal;font-size-adjust:none;font-stretch:normal;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;"&gt;This made sense as it was step by step, but it was written for InfoPath 2003, and even after giving it a go, it did not work.&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br style="text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal;font-size-adjust:none;font-stretch:normal;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" /&gt;&lt;a style="margin:0px;padding:0px;outline:0px;border:0px currentColor;text-transform:none;text-indent:0px;letter-spacing:normal;text-decoration:none;word-spacing:0px;vertical-align:baseline;white-space:normal;font-size-adjust:none;font-stretch:normal;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" href="http://www.linkedin.com/redirect?url=http%3A%2F%2Fwww%2Ebizsupportonline%2Enet%2Finfopath2003%2Ftime-calculations-infopath-using-rules%2Ehtm&amp;amp;urlhash=D64U&amp;amp;_t=tracking_anet" rel="nofollow" target="blank"&gt;http://www.bizsupportonline.net/infopath2003/time-calculations-infopath-using-rules.htm&lt;/a&gt;&lt;span style="text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;float:none;white-space:normal;font-size-adjust:none;font-stretch:normal;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;"&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br style="text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal;font-size-adjust:none;font-stretch:normal;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" /&gt;&lt;br style="text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal;font-size-adjust:none;font-stretch:normal;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" /&gt;&lt;span style="text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;float:none;white-space:normal;font-size-adjust:none;font-stretch:normal;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;"&gt;I tried to use the following formulates but InfoPath errored on them:&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br style="text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal;font-size-adjust:none;font-stretch:normal;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" /&gt;&lt;span style="text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;float:none;white-space:normal;font-size-adjust:none;font-stretch:normal;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;"&gt;=TEXT([Column2]-[Column1],&amp;quot;h:mm&amp;quot;)&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br style="text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal;font-size-adjust:none;font-stretch:normal;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" /&gt;&lt;span style="text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;float:none;white-space:normal;font-size-adjust:none;font-stretch:normal;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;"&gt;and&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br style="text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal;font-size-adjust:none;font-stretch:normal;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" /&gt;&lt;span style="text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;float:none;white-space:normal;font-size-adjust:none;font-stretch:normal;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;"&gt;=INT(([Column2]-[Column1])*1440)&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br style="text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal;font-size-adjust:none;font-stretch:normal;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" /&gt;&lt;span style="text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;float:none;white-space:normal;font-size-adjust:none;font-stretch:normal;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;"&gt;(with the columns matching the names of my columns; formula applied to the field (default value) that will display the difference)&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br style="text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal;font-size-adjust:none;font-stretch:normal;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" /&gt;&lt;span style="text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;float:none;white-space:normal;font-size-adjust:none;font-stretch:normal;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;"&gt;Found on this page:&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br style="text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal;font-size-adjust:none;font-stretch:normal;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" /&gt;&lt;a style="margin:0px;padding:0px;outline:0px;border:0px currentColor;text-transform:none;text-indent:0px;letter-spacing:normal;text-decoration:none;word-spacing:0px;vertical-align:baseline;white-space:normal;font-size-adjust:none;font-stretch:normal;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" href="http://www.linkedin.com/redirect?url=http%3A%2F%2Fmsdn%2Emicrosoft%2Ecom%2Fen-us%2Flibrary%2Fbb862071%2Easpx&amp;amp;urlhash=rW0N&amp;amp;_t=tracking_anet" rel="nofollow" target="blank"&gt;http://msdn.microsoft.com/en-us/library/bb862071.aspx&lt;/a&gt;&lt;span style="text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;float:none;white-space:normal;font-size-adjust:none;font-stretch:normal;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;"&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br style="text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal;font-size-adjust:none;font-stretch:normal;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" /&gt;&lt;br style="text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal;font-size-adjust:none;font-stretch:normal;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" /&gt;&lt;span style="text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;float:none;white-space:normal;font-size-adjust:none;font-stretch:normal;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;"&gt;I&amp;#39;d just like to find a step by step guide that shows me how to do this. Help? :)&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>