<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Is there a way I can calculate the number of Days?</title><link>https://www.infopathdev.com:443/forums/thread/68369.aspx</link><pubDate>Wed, 13 Jul 2011 13:40:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68369</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68369.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=68369</wfw:commentRss><description>&lt;p&gt;To which link are you referring?&amp;nbsp; The swits.net link that goes to a generic domain parking page, as swits.net has apparently closed down?&amp;nbsp; Alec&amp;#39;s link does have a solution to this question and none of the things you describe.&lt;/p&gt;</description></item><item><title>Re: Is there a way I can calculate the number of Days?</title><link>https://www.infopathdev.com:443/forums/thread/68367.aspx</link><pubDate>Wed, 13 Jul 2011 12:40:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68367</guid><dc:creator>Donna Graham</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68367.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=68367</wfw:commentRss><description>&lt;p&gt;This link sent me to a site with a list of sites for paid training and consulting it didn&amp;#39;t have this answer don&amp;#39;t waste your time going.&lt;/p&gt;</description></item><item><title>Re: Is there a way I can calculate the number of Days?</title><link>https://www.infopathdev.com:443/forums/thread/36405.aspx</link><pubDate>Tue, 30 Dec 2008 19:32:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36405</guid><dc:creator>Alec Pojidaev</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36405.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=36405</wfw:commentRss><description>&lt;p&gt;Here is compact codeless method:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="http://alecpojidaev.wordpress.com/2008/12/30/infopath-codeless-programming-walkthrough-2/"&gt;http://alecpojidaev.wordpress.com/2008/12/30/infopath-codeless-programming-walkthrough-2/&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Is there a way I can calculate the number of Days?</title><link>https://www.infopathdev.com:443/forums/thread/28443.aspx</link><pubDate>Wed, 30 Apr 2008 21:19:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28443</guid><dc:creator>Jameski</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28443.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28443</wfw:commentRss><description>&lt;p&gt;I also get a zero, can you possible post a link to the working form.&lt;/p&gt;</description></item><item><title>Re: Is there a way I can calculate the number of Days?</title><link>https://www.infopathdev.com:443/forums/thread/28388.aspx</link><pubDate>Tue, 29 Apr 2008 19:58:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28388</guid><dc:creator>edwardvn</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28388.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28388</wfw:commentRss><description>&lt;p&gt;&lt;strong&gt;please does any body know where i can get this working form?&lt;/strong&gt;&lt;/p&gt;</description></item><item><title>Re: Is there a way I can calculate the number of Days?</title><link>https://www.infopathdev.com:443/forums/thread/28323.aspx</link><pubDate>Mon, 28 Apr 2008 08:30:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28323</guid><dc:creator>edwardvn</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28323.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28323</wfw:commentRss><description>&lt;p&gt;You dont possibly have this in a form that i can use do you, i entered all the stuff like it says, but i just get a zero.&lt;/p&gt;
&lt;p&gt;I would very much appreciate you help&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind Regards&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Edward&lt;/p&gt;</description></item><item><title>Re: Is there a way I can calculate the number of Days?</title><link>https://www.infopathdev.com:443/forums/thread/28291.aspx</link><pubDate>Fri, 25 Apr 2008 14:40:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28291</guid><dc:creator>edwardvn</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28291.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28291</wfw:commentRss><description>&lt;p&gt;This is exactly what i want but the value returned is allways 0, i have no idea what i have done wrong, you dont happen to have a working example form with it in do you. I am desperate and dont know what to do.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind Regards&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Edward&lt;/p&gt;</description></item><item><title>Re: Is there a way I can calculate the number of Days?</title><link>https://www.infopathdev.com:443/forums/thread/24453.aspx</link><pubDate>Thu, 15 Nov 2007 03:06:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24453</guid><dc:creator>norale</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24453.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=24453</wfw:commentRss><description>&lt;p&gt;Hi, just want to share a solution to calculate days for different dates using rules.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://enterprise-solutions.swits.net/infopath2007/calculate-date-difference-infopath-rules-formulas.htm"&gt;http://enterprise-solutions.swits.net/infopath2007/calculate-date-difference-infopath-rules-formulas.htm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;</description></item><item><title>Re: Is there a way I can calculate the number of Days?</title><link>https://www.infopathdev.com:443/forums/thread/22540.aspx</link><pubDate>Wed, 22 Aug 2007 15:23:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22540</guid><dc:creator>Kalyan Gaddam</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22540.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=22540</wfw:commentRss><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;Read the link below&lt;/p&gt;
&lt;p&gt;&lt;a href="http://enterprise-solutions.swits.net/infopath2003/article.php?t=datediff-vbscript-infopath&amp;amp;c=infopath2003"&gt;http://enterprise-solutions.swits.net/infopath2003/article.php?t=datediff-vbscript-infopath&amp;amp;c=infopath2003&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;also there are many articles under Date and Time header in the same site which can be of some help&lt;/p&gt;</description></item><item><title>Re: Is there a way I can calculate the number of Days?</title><link>https://www.infopathdev.com:443/forums/thread/21788.aspx</link><pubDate>Wed, 18 Jul 2007 20:29:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21788</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21788.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=21788</wfw:commentRss><description>&lt;p&gt;I was thinking more along the lines of:&lt;/p&gt;&lt;p&gt;DateTime date1 = thisXDocument.DOM.selectSingleNode(&amp;quot;my:Date1&amp;quot;);&lt;br /&gt;DateTime date2 = thisXDocument.DOM.selectSingleNode(&amp;quot;my:Date2&amp;quot;);&lt;/p&gt;&lt;p&gt;TimeSpan diff = date2.Subtract(date1);&lt;/p&gt;&lt;p&gt;int days = diff.Days; // Whole days (i.e. &amp;#39;5&amp;#39;).&lt;br /&gt;double fdays = diff.TotalDays // Whole + fractional days (i.e. &amp;#39;5.23412&amp;#39;).&lt;/p&gt;</description></item><item><title>Re: Is there a way I can calculate the number of Days?</title><link>https://www.infopathdev.com:443/forums/thread/21727.aspx</link><pubDate>Tue, 17 Jul 2007 11:45:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21727</guid><dc:creator>Curious</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21727.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=21727</wfw:commentRss><description>&lt;p&gt;though this code may not work correct but just a quick idea&lt;/p&gt;&lt;p&gt;&lt;strong&gt;
int daysNumber = Convert.ToInt32(d1.Value.Day - d2.Value.Day); // d1 and d2 are the datetime picker controls...&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Is there a way I can calculate the number of Days?</title><link>https://www.infopathdev.com:443/forums/thread/21423.aspx</link><pubDate>Tue, 03 Jul 2007 20:40:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21423</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21423.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=21423</wfw:commentRss><description>Look out on the MSDN.com site at the methods for the DateTime object. You should find everything you need there.</description></item><item><title>Re: Is there a way I can calculate the number of Days?</title><link>https://www.infopathdev.com:443/forums/thread/21384.aspx</link><pubDate>Mon, 02 Jul 2007 17:29:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21384</guid><dc:creator>mrssteelhead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21384.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=21384</wfw:commentRss><description>&lt;p&gt;Greg,&lt;/p&gt;&lt;p&gt;Thanks for the quick reply, you wouldn&amp;#39;t happen to have an example of the code, or can you point me in the direction of someplace I can look at an example?&lt;/p&gt;</description></item><item><title>Re: Is there a way I can calculate the number of Days?</title><link>https://www.infopathdev.com:443/forums/thread/21381.aspx</link><pubDate>Mon, 02 Jul 2007 16:42:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21381</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21381.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=21381</wfw:commentRss><description>&lt;p&gt;InfoPath 2007 does allow some date math... However, the easiest way is to use managed code to read the two dates and use the wonderful date functions available in C# and VB.NET to do what you want.&lt;/p&gt;</description></item><item><title>Is there a way I can calculate the number of Days?</title><link>https://www.infopathdev.com:443/forums/thread/21372.aspx</link><pubDate>Mon, 02 Jul 2007 14:57:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21372</guid><dc:creator>mrssteelhead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21372.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=21372</wfw:commentRss><description>&lt;p&gt;I have 2 date picker controls in my InfoPath 2007 form -&amp;nbsp; a start date and an end date,&amp;nbsp; I would like to be able to get the number of days the range expands, is there a way I can do this?&lt;/p&gt;&lt;p&gt;MrsSteelhead&lt;/p&gt;</description></item></channel></rss>