<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Date Difference Calculation in C#</title><link>https://www.infopathdev.com:443/forums/thread/32858.aspx</link><pubDate>Mon, 06 Oct 2008 22:55:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32858</guid><dc:creator>kev_wilson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32858.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=32858</wfw:commentRss><description>&lt;p&gt;Hi Anuma&lt;/p&gt;
&lt;p&gt;Thanks for the reply and the links they&amp;nbsp;are very useful and do exactly what I want.&amp;nbsp;Interesting approach without the code! I like it.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks&amp;nbsp;again&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;Kevin&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Date Difference Calculation in C#</title><link>https://www.infopathdev.com:443/forums/thread/32826.aspx</link><pubDate>Mon, 06 Oct 2008 06:33:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32826</guid><dc:creator>Anuma</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32826.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=32826</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you please verify below links.&lt;/p&gt;
&lt;p&gt;Date Difference with C# code:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.bizsupportonline.net/browserforms/calculate-date-difference-infopath-browser-form-c-sharp-code.htm"&gt;http://www.bizsupportonline.net/browserforms/calculate-date-difference-infopath-browser-form-c-sharp-code.htm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Date Difference with out code:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.bizsupportonline.net/infopath2007/calculate-date-difference-infopath-rules-formulas.htm"&gt;http://www.bizsupportonline.net/infopath2007/calculate-date-difference-infopath-rules-formulas.htm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Date Difference Calculation in C#</title><link>https://www.infopathdev.com:443/forums/thread/32825.aspx</link><pubDate>Mon, 06 Oct 2008 06:31:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32825</guid><dc:creator>sandhyapati</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32825.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=32825</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;DateTime dt1 = new DateTime(....);&lt;br /&gt;DateTime dt2 = new DateTime(...);&lt;br /&gt;&lt;br /&gt;TimeSpan ts = dt1 - dt2;&lt;br /&gt;&lt;br /&gt;or use&lt;br /&gt;&lt;br /&gt;TimeSpan = DateTime.Now - dt1;&lt;br /&gt;&lt;br /&gt;or whatever&lt;br /&gt;&lt;br /&gt;&amp;nbsp;Can you go through the following link&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.dotnetspider.com/resources/458-How-find-difference-between-two-Dates-C-or.aspx"&gt;http://www.dotnetspider.com/resources/458-How-find-difference-between-two-Dates-C-or.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I hope it gives clear idea.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Date Difference Calculation in C#</title><link>https://www.infopathdev.com:443/forums/thread/32821.aspx</link><pubDate>Mon, 06 Oct 2008 05:44:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32821</guid><dc:creator>kev_wilson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32821.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=32821</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Apologies for posting another date difference question but the existing posts do not appear to address my situation.&lt;/p&gt;
&lt;p&gt;Would it be possible for somebody to post an C# example of the date difference calculation that calculates the difference between two dates and populates a field with the value as most of the examples are in VBScript and for IP2003 - I am using InfoPath2007 and would like to us C#&lt;/p&gt;
&lt;p&gt;Any help would be greatly appreciated.&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;Kev&lt;/p&gt;</description></item></channel></rss>