<?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: Start &amp; Finish times &amp; Calculate Total</title><link>https://www.infopathdev.com:443/forums/thread/91037.aspx</link><pubDate>Tue, 02 Jul 2013 10:35:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91037</guid><dc:creator>ArtySin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91037.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=91037</wfw:commentRss><description>Hilary, thanks for that so I put my thinking cap on, and decided that the times displayed would only be for e.g: 09:00  09:15  09:30  09:45. The values would then be 9.0  9.25   9.5   9.75 and similarly for this finish times. Total hours worked is then a simple subtraction of the start time from the finish time and all works perfectly. :-)</description></item><item><title>Re: Start &amp; Finish times &amp; Calculate Total</title><link>https://www.infopathdev.com:443/forums/thread/91010.aspx</link><pubDate>Sat, 29 Jun 2013 23:28:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91010</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91010.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=91010</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Unfortunately, there is no easy way to do this in InfoPath. There is no built in functionality for date or&amp;nbsp;time&amp;nbsp;differences. Options are custom code, qRules, or you can find some blog posts with rather complex formulas like this one - &lt;a href="http://www.formsonfire.com/infopath/calculating-time-differences-in-infopath-without-custom-code/"&gt;http://www.formsonfire.com/infopath/calculating-time-differences-in-infopath-without-custom-code/&lt;/a&gt;. If you are using IP 2010 and you happen to have SharePoint 2010 with Excel Services, I think a person could also accomplish this using Excel + REST. I&amp;#39;m sorry - this is not what you want to hear, I know - but it is just one of those gaps in InfoPath functionality. &lt;/p&gt;</description></item><item><title>Start &amp; Finish times &amp; Calculate Total</title><link>https://www.infopathdev.com:443/forums/thread/91007.aspx</link><pubDate>Sat, 29 Jun 2013 10:10:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91007</guid><dc:creator>ArtySin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91007.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=91007</wfw:commentRss><description>Hi, I have just created my first InfoPath form which is a timesheet form for which I have three fields: txtStart_Time txtFinish_Time txtTotal_Hours All three fields are set to a data type of time (09:46). The txtTotal_Hours has had its&amp;#39; default value set to a formula of txtFinish_Time - txtStart_Time and the formula checker says it&amp;#39;s OK. When the preview button is clicked the txtTotal_Hours field displays &amp;quot;0&amp;quot; as it should but then the problem arises. Entering a start time of 09:00 and a finish time of 17:00 just display NaN. It works OK with the three fields set to decimal but a time format is required. I&amp;#39;ve searched on here and the web but have found no answer to what must surely be a simple thing. So any help is much appreciated. Many thanks ArtySin</description></item></channel></rss>