<?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: calculate the difference between two dates times in infopath form 2010</title><link>https://www.infopathdev.com:443/forums/thread/75831.aspx</link><pubDate>Wed, 29 Feb 2012 07:41:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:75831</guid><dc:creator>Jo-Anne Alfafara</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/75831.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=75831</wfw:commentRss><description>&lt;p&gt;Hi wissems,&lt;/p&gt;
&lt;p&gt;You can use substring in your formula to get the time on both date time fields and then subtract it. &lt;/p&gt;
&lt;p&gt;Please see this sample form for tips on how to use substring on date/time fields:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/files/folders/examples/entry41104.aspx"&gt;http://www.infopathdev.com/files/folders/examples/entry41104.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>calculate the difference between two dates times in infopath form 2010</title><link>https://www.infopathdev.com:443/forums/thread/75794.aspx</link><pubDate>Tue, 28 Feb 2012 15:23:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:75794</guid><dc:creator>wissems</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/75794.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=75794</wfw:commentRss><description>Hi,

I have an infopath 2010 form that contains three fields:
2 date time and the 3rd contains the difference between the two in hours
how I can make the difference between the two so that the display will be like this:
Date Time1           05/01/2010           22:00 
Date Time2           6/1/2010                 1:00
Diff Field                                               3:00
thank you in advance for your answer</description></item></channel></rss>