<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>InfoPath 2007 Attempting to add months to date</title><link>https://www.infopathdev.com:443/forums/thread/99152.aspx</link><pubDate>Wed, 17 Sep 2014 19:35:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99152</guid><dc:creator>Wheels</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99152.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=99152</wfw:commentRss><description>&lt;p&gt;Good afternoon.&lt;/p&gt;&lt;p&gt;I have the following scenario:&lt;/p&gt;&lt;p&gt;I have a DatePicker field, a TextBox looking for the # of months to add, another TextBox which will house the result, a date picker which houses a date for comparision to result, and a TextBox that will display YES or NO depend on if it is &amp;lt;= comparison date.&lt;/p&gt;&lt;p&gt;9/17/2014 +&amp;nbsp;3 = 12/17/2014   Compare Date: 12/03/2014 YES&lt;/p&gt;&lt;p&gt;It would be a simple matter if there was an addMonths() like the addDays(). I know Excel has an EDATE([DateField],# of months).&lt;/p&gt;&lt;p&gt;I am kicking around a few formulas:&amp;nbsp;&lt;/p&gt;&lt;p&gt;number(substring([DateField], 9, 2)) &amp;#39;Day&lt;br /&gt;number(substring([DateField], 6, 2)) &amp;#39;Month&lt;br /&gt;number(substring([DateField], 1, 4)) &amp;#39;Year&lt;/p&gt;&lt;p&gt;concat(number(substring([DateField], 1, 4)),&amp;quot;-&amp;quot;,number(substring([DateField], 6, 2)),&amp;quot;-&amp;quot;,number(substring([DateField], 9, 2)))&lt;/p&gt;&lt;p&gt;Does anyone know a good way to accomplish this without scripting? &lt;/p&gt;&lt;p&gt;Thank you, WHEELS&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>