<?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: Calculating number of months in a date range</title><link>https://www.infopathdev.com:443/forums/thread/104453.aspx</link><pubDate>Fri, 23 Oct 2015 21:18:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104453</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104453.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=104453</wfw:commentRss><description>Hooray! I&amp;#39;m glad you have it working the way you need it to! Great start to the weekend. :-)</description></item><item><title>Re: Calculating number of months in a date range</title><link>https://www.infopathdev.com:443/forums/thread/104452.aspx</link><pubDate>Fri, 23 Oct 2015 21:11:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104452</guid><dc:creator>ctoper11</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104452.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=104452</wfw:commentRss><description>That worked! Hilary thank you so so much for you help. You are awesome. This is really useful info. Thanks again</description></item><item><title>Re: Calculating number of months in a date range</title><link>https://www.infopathdev.com:443/forums/thread/104451.aspx</link><pubDate>Fri, 23 Oct 2015 18:11:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104451</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104451.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=104451</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Sure - the rules would be very similar to the ones on the repeating section. Basically, you need to get the month piece of the selected dates and then use conditional formatting to hide the sections that don&amp;#39;t apply. Another simple sample attached. &lt;/p&gt;</description></item><item><title>Re: Calculating number of months in a date range</title><link>https://www.infopathdev.com:443/forums/thread/104441.aspx</link><pubDate>Thu, 22 Oct 2015 23:57:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104441</guid><dc:creator>ctoper11</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104441.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=104441</wfw:commentRss><description>Exactly. Sections are in main data source the only thing is in each section I&amp;#39;ll have a couple of text controls hence the need for a section to hide them all. But yes if I had a static column for each month and was able to fill each month column in the way you have it for your repeating section in your form I&amp;#39;d be able to hide or show a section. Hence if April is one of the months in the date range the April text box populates and then the April control with the various text boxes within it would appear. Again all in the main data source. So is this possible?

Many many thanks for your help here.</description></item><item><title>Re: Calculating number of months in a date range</title><link>https://www.infopathdev.com:443/forums/thread/104438.aspx</link><pubDate>Thu, 22 Oct 2015 21:18:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104438</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104438.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=104438</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hmmm - so the sections will be in the main data source instead of a secondary data source? They won&amp;#39;t be repeating, right - since this is a list form? So you&amp;#39;d have a column for each month and the user only fills out those that pertain?&lt;/p&gt;</description></item><item><title>Re: Calculating number of months in a date range</title><link>https://www.infopathdev.com:443/forums/thread/104434.aspx</link><pubDate>Wed, 21 Oct 2015 17:24:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104434</guid><dc:creator>ctoper11</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104434.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=104434</wfw:commentRss><description>Thank you so much for answering Hilary. Yes that is definitely what I would like to do. But can I use static fields instead of a repeating table? I am building this form on a list not a library. Basically my end goal is to have a section for each month. Hide those sections but have them appear dependent on the date range chosen. So I&amp;#39;d like to use the fields populated with the month names (very similar to your example form) to use a formatting rule to make the pertinent sections appear. That make sense?</description></item><item><title>Re: Calculating number of months in a date range</title><link>https://www.infopathdev.com:443/forums/thread/104432.aspx</link><pubDate>Wed, 21 Oct 2015 14:45:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104432</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104432.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=104432</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I&amp;#39;m not sure what your desired outcome is, but here is a sample that displays the month range for two selected dates, leveraging an XML secondary data source. Save the attached file locally, right click to select design, then preview and select a start and end date for the range.&lt;/p&gt;</description></item><item><title>Calculating number of months in a date range</title><link>https://www.infopathdev.com:443/forums/thread/104425.aspx</link><pubDate>Tue, 20 Oct 2015 21:21:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104425</guid><dc:creator>ctoper11</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104425.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=104425</wfw:commentRss><description>OK so I have to date picker fields. One is Start Date the Other is End Date. Is there any way I can pull the name (or number) of the months in that range? For example if I pick 2/15/2015 to 5/4/2015 I could get either February, March, April, May or 2,3,4,5,.  I know using substring you can pull the number of the month for each date you pick and I know this can be done in Excel with a formula but can this be done in Infopath? Thanks so much for any answer I can get.

Chris</description></item></channel></rss>