<?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: How to substract time in infopath</title><link>https://www.infopathdev.com:443/forums/thread/93919.aspx</link><pubDate>Sun, 27 Oct 2013 06:33:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93919</guid><dc:creator>Abhishek.kk</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93919.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=93919</wfw:commentRss><description>Hi,

Thanks for reply.
Here is what i want to do:-

I have created three text boxes, where people will paste a value in first text box in this format -  (10/24/2013 5:52:36 PM) specifically
Now the other two boxes should automatic calculate time as :-

2nd text box - 10/24/2013 5:52:36 PM - 2 hours = 10/24/2013 3:52:36 PM and
3rd text box - 10/24/2013 5:52:36 PM - 6 hours = 10/24/2013 11:52:36 PM.

Regards
Abhishek</description></item><item><title>Re: How to substract time in infopath</title><link>https://www.infopathdev.com:443/forums/thread/93902.aspx</link><pubDate>Fri, 25 Oct 2013 07:41:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93902</guid><dc:creator>wilkies0106aw</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93902.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=93902</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Obviously if you want to take away 2 hours add a minus sign in front of your seconds - &lt;span class="gmw_"&gt;&lt;span class="gm_ gm_270a72e3-0dd2-725d-8d7c-c87515fcf9e8 gm-spell"&gt;addseconds&lt;/span&gt;(substring-after(now(),&amp;quot;T&amp;quot;),-7200)&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: How to substract time in infopath</title><link>https://www.infopathdev.com:443/forums/thread/93901.aspx</link><pubDate>Fri, 25 Oct 2013 07:38:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93901</guid><dc:creator>wilkies0106aw</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93901.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=93901</wfw:commentRss><description>&lt;p&gt;You might want to separate the date and time into 2 fields.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="gmw_"&gt;You could use the &lt;span class="gm_ gm_1c9e7fed-ea3c-45f9-a4ab-8cfcab6e7568 gm-spell"&gt;addseconds&lt;/span&gt; function, if you consistently wanted 2 hours.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;i.e. addseconds(timefield),7200)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;span class="gmw_"&gt;you could also do something&amp;nbsp; like the following &lt;span class="gm_ gm_58fd0b68-ff8f-ebe0-41b4-4933ac9b910b gm-spell"&gt;addseconds&lt;/span&gt;(substring-after(now(),&amp;quot;T&amp;quot;),7200) if you used the now function. &lt;/span&gt;&lt;/p&gt;&lt;p&gt;Anything more complicated you&amp;#39;ll most likely need other fields so that you can do the math easier. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>How to substract time in infopath</title><link>https://www.infopathdev.com:443/forums/thread/93893.aspx</link><pubDate>Thu, 24 Oct 2013 19:12:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93893</guid><dc:creator>Abhishek.kk</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93893.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=93893</wfw:commentRss><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I am new to infopath. I created 2 text boxes. In one of them i will paste the time in &amp;quot;10/24/2013 5:52:36 PM&amp;quot; format. I want in other box&amp;nbsp; the time should be :-&lt;br /&gt;&lt;br /&gt;2nd box - 10/24/2013 5:52:36 PM - 2hours = 10/24/2013 3:52:36 PM GMT&lt;br /&gt;&lt;br /&gt;&amp;nbsp;Please help me with the same.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Regards&lt;/p&gt;&lt;p&gt;Abhishek &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>