<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: calculate time</title><link>https://www.infopathdev.com:443/forums/thread/71077.aspx</link><pubDate>Thu, 13 Oct 2011 02:23:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71077</guid><dc:creator>MoBayTech</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71077.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=71077</wfw:commentRss><description>solved my issue with http://blogs.msdn.com/b/infopath/archive/2007/02/21/calculating-elapsed-time-without-code.aspx
&lt;br /&gt;
&lt;br /&gt;

(((substring-before(endTime, &amp;quot;:&amp;quot;) * 60) + substring-before(substring-after(endTime, &amp;quot;:&amp;quot;), &amp;quot;:&amp;quot;)) -
((substring-before(startTime, &amp;quot;:&amp;quot;) * 60) + substring-before(substring-after(startTime, &amp;quot;:&amp;quot;), &amp;quot;:&amp;quot;))) / 60</description></item><item><title>calculate time</title><link>https://www.infopathdev.com:443/forums/thread/71076.aspx</link><pubDate>Wed, 12 Oct 2011 23:28:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71076</guid><dc:creator>MoBayTech</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71076.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=71076</wfw:commentRss><description>&lt;p&gt;&lt;span style="text-align:left;text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal;orphans:2;widows:2;font-size-adjust:none;font-stretch:normal;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;I have two drop down fields&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;em style="border-width:0px;margin:0px;padding:0px;font-family:inherit;font-style:italic;font-weight:inherit;outline-width:0px;"&gt;data type time&lt;/em&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;named TimeIn and TimeOut and another text box field named hours that I want to show the results of the time a user worked.&lt;br style="margin:0px;padding:0px;" /&gt;&lt;br style="margin:0px;padding:0px;" /&gt;Example:&lt;br style="margin:0px;padding:0px;" /&gt;&lt;br style="margin:0px;padding:0px;" /&gt;TimeIn = 9:00 AM TimeOut = 5:00 PM then hours = 8&lt;br style="margin:0px;padding:0px;" /&gt;&lt;br style="margin:0px;padding:0px;" /&gt;I can&amp;#39;t figure how in infopath to calculate the hours field, any ideas on how to solve this issue?&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="text-align:left;text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal;orphans:2;widows:2;font-size-adjust:none;font-stretch:normal;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="text-align:left;text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal;orphans:2;widows:2;font-size-adjust:none;font-stretch:normal;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;&lt;span style="text-align:left;text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal;orphans:2;widows:2;font-size-adjust:none;font-stretch:normal;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;&lt;img title="Timesheet 1" alt="Timesheet 1" align="middle" src="https://lh4.googleusercontent.com/-8R5aLyJlxTw/TpYnxUswQYI/AAAAAAAAAMc/YJ069NNecQ8/s512/ts2.jpg" /&gt;&lt;img style="width:624px;height:113px;" title="Timesheet 2" alt="Timesheet 2" src="https://lh3.googleusercontent.com/-6ZGgYxhFdaY/TpYnwFAEUAI/AAAAAAAAAMU/cMSk7W8newU/s801/ts1.jpg" width="801" height="145" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>