<?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: Subtracting two DateTime fields</title><link>https://www.infopathdev.com:443/forums/thread/100282.aspx</link><pubDate>Tue, 25 Nov 2014 16:39:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100282</guid><dc:creator>Bre Huston</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100282.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=100282</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello thelihyjr,&lt;/p&gt;&lt;p&gt;You may want to look at trying to use an additional formula to subtract the dates. I would subtract date 2 from date 1 and then subtract one. In the formulat above, it would take 20141013 - 20141011 (2 days) minus 1 (an additional day) and return the days to a separate field from the hours. Out of the box this is probably going to be tricky, and a bit unreliable, especially if the dates span months.&lt;/p&gt;&lt;p&gt;Another option would be to use qRules. There is a simple datediff command that easily calculates the difference between two dates in a desired format. Here&amp;#39;s a link to more information about&amp;nbsp;the command: &lt;a href="http://www.infopathdev.com/forums/p/24353/84215.aspx#84215"&gt;http://www.infopathdev.com/forums/p/24353/84215.aspx#84215&lt;/a&gt;&lt;/p&gt;&lt;p&gt;You can download a free trial of qRules here to try it out: &lt;a href="http://www.qdabra.com/en/products/qRules_new.aspx"&gt;http://www.qdabra.com/en/products/qRules_new.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Hope that helps!&lt;br /&gt;Bre&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;"&gt;&lt;a name="_MailAutoSig"&gt;&lt;/a&gt;&lt;b&gt;&lt;span style="color:maroon;font-size:10pt;mso-fareast-theme-font:minor-fareast;mso-no-proof:yes;"&gt;Bre Huston
| &lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;span style="color:black;font-size:10pt;mso-fareast-theme-font:minor-fareast;mso-no-proof:yes;"&gt;Project Manager&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;"&gt;&lt;a href="http://www.qdabra.com/" target="_blank"&gt;&lt;span&gt;&lt;b&gt;&lt;span style="color:maroon;font-size:9pt;mso-fareast-theme-font:minor-fareast;mso-no-proof:yes;"&gt;Qdabra® Software&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&lt;b&gt;&lt;span style="font-size:9pt;mso-fareast-theme-font:minor-fareast;mso-no-proof:yes;"&gt; / &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;a href="http://www.infopathdev.com/" target="_blank"&gt;&lt;span&gt;&lt;b&gt;&lt;span style="font-size:9pt;mso-fareast-theme-font:minor-fareast;mso-no-proof:yes;"&gt;InfoPathDev.com&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&lt;b&gt;&lt;span style="font-size:9pt;mso-fareast-theme-font:minor-fareast;mso-no-proof:yes;"&gt; / &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;a href="http://formsquo.com/"&gt;&lt;span&gt;&lt;b&gt;&lt;span style="color:maroon;font-size:9pt;mso-fareast-theme-font:minor-fareast;mso-no-proof:yes;"&gt;FormsQuo&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&lt;b&gt;&lt;span style="font-size:9pt;mso-fareast-theme-font:minor-fareast;mso-no-proof:yes;"&gt; /&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span&gt;&lt;b&gt;&lt;span style="color:gray;font-size:9pt;mso-fareast-theme-font:minor-fareast;mso-no-proof:yes;"&gt;877.544.2389 main / &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span&gt;&lt;span style="color:gray;font-size:8pt;mso-fareast-theme-font:minor-fareast;mso-no-proof:yes;"&gt;425.318.7843 direct&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;"&gt;&lt;span&gt;&lt;b&gt;&lt;span style="font-size:8pt;mso-fareast-theme-font:minor-fareast;mso-no-proof:yes;"&gt;Business Process Automation for Everyone&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span&gt;&lt;b&gt;&lt;span style="color:black;font-size:8pt;mso-fareast-theme-font:minor-fareast;mso-no-proof:yes;"&gt; – Streamline data gathering to
turn process into knowledge.™&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Subtracting two DateTime fields</title><link>https://www.infopathdev.com:443/forums/thread/99997.aspx</link><pubDate>Mon, 10 Nov 2014 20:48:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99997</guid><dc:creator>therlihyjr</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99997.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=99997</wfw:commentRss><description>So after many hours scouring the internet, I have been able to find both a date, and a time subtraction formula. I have been able to modify them as well, however, there are a few fatal flaws in this. For example, subtracting time alone cannot take into consideration for time spanning across multiple days (thus returning negative numbers if your timeend is before your timestart). 
&lt;p&gt;
What I am looking for is a way to subtract two DateTime fields without qRules or any type of code. I cannot use a SharePoint collumn to do this calc for me either, as the purpose of the form is primarily to submit to email. It also has to be done solely with Rules as below: 
&lt;p&gt;
StartTime = 10/11/2014 4:00 PM
EndTime = 10/13/2014 9:00 AM
&lt;p&gt;
Return = 1 Day 17 Hours
&lt;p&gt;
If this is better to do in military time, I am happy to do that, but I am stuck! 
&lt;p&gt;
My primary source of info for this was: 
http://www.bizsupportonline.net/infopath2007/calculate-date-difference-infopath-rules-formulas.htm
I have also used: 
http://www.bizsupportonline.net/infopath2003/time-calculations-infopath-using-rules.htm
&lt;p&gt;
Thoughts? Comments? Thanks for your time and consideration!</description></item></channel></rss>