<?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: Get number of months in Decimals between two Date Pickers then round up.</title><link>https://www.infopathdev.com:443/forums/thread/67802.aspx</link><pubDate>Mon, 27 Jun 2011 20:15:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67802</guid><dc:creator>Juan Sanchez</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67802.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67802</wfw:commentRss><description>&lt;p&gt;Thank you very much, Jimmy!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Juan&lt;/p&gt;</description></item><item><title>Re: Get number of months in Decimals between two Date Pickers then round up.</title><link>https://www.infopathdev.com:443/forums/thread/67789.aspx</link><pubDate>Mon, 27 Jun 2011 13:02:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67789</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67789.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67789</wfw:commentRss><description>&lt;p&gt;You can use the codeless date diff trick or qRules (which is somewhat&amp;nbsp;simpler)&amp;nbsp;to get the number of days between two dates:&lt;/p&gt;
&lt;p&gt;&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;
&lt;p&gt;Then you can take the result, divide it by 30, and use the round() function to round it.&lt;/p&gt;</description></item><item><title>Get number of months in Decimals between two Date Pickers then round up.</title><link>https://www.infopathdev.com:443/forums/thread/67788.aspx</link><pubDate>Mon, 27 Jun 2011 12:33:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67788</guid><dc:creator>Juan Sanchez</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67788.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67788</wfw:commentRss><description>&lt;p&gt;With the awsome blogs in this forum, I&amp;nbsp;was able to get the number of months between 2 date pickers&amp;nbsp;as described below:&lt;/p&gt;
&lt;p&gt;12 * (substring(PERIOD THRU DATE, 1, 4) - substring(PERIOD FROM, 1,4)) + (substring(PERIOD THRU DATE, 6, 2) - substring(PERIOD FROM, 6, 2))&lt;/p&gt;
&lt;p&gt;But the results I need are months in decimals and then round up if greater than (.5),&amp;nbsp;for example: &lt;/p&gt;
&lt;p&gt;If I have 75 days I need it to be divided by 30 days and then display the results&amp;nbsp;in&amp;nbsp;decimal months which would be (2.5 months) and if&amp;nbsp;greater than (.5 ) then it&amp;nbsp;needs&amp;nbsp;to round up to 3 months. I hope there are formulas that can be combined&amp;nbsp;to get the desired results, without code. Is there anyone that has the knowledge to accomplish this capability?&lt;/p&gt;
&lt;p&gt;Thanks in advance!&lt;/p&gt;
&lt;p&gt;Juan&lt;/p&gt;</description></item></channel></rss>