<?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: How to calculate a leap year</title><link>https://www.infopathdev.com:443/forums/thread/28068.aspx</link><pubDate>Fri, 18 Apr 2008 14:11:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28068</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28068.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28068</wfw:commentRss><description>&lt;p&gt;Still not sure what you want.&lt;/p&gt;
&lt;p&gt;so you want to add 5 years to 4/18/2008 and get 4/18/2013?&amp;nbsp; Even though that is not 365x5 days?&lt;/p&gt;
&lt;p&gt;If it is that simple you can use substrings and concatenate to create your date. Seperate the year, add the amount, and then concatenate it back together again.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How to calculate a leap year</title><link>https://www.infopathdev.com:443/forums/thread/28063.aspx</link><pubDate>Fri, 18 Apr 2008 12:30:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28063</guid><dc:creator>edwardvn</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28063.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28063</wfw:commentRss><description>&lt;p&gt;Thank you very much for your very quick response, I am trying but still cant do it. &lt;/p&gt;
&lt;p&gt;All i m trying to do is take a years value,&amp;nbsp;say 5&amp;nbsp;and add exactly 2 years to it and return the new&amp;nbsp;date taking into account leap years etc.&lt;/p&gt;
&lt;p&gt;I have been at it for hours and just cant work it out. Would you be able to help me?&lt;/p&gt;
&lt;p&gt;Kind Regards&lt;/p&gt;
&lt;p&gt;Edward&lt;/p&gt;</description></item><item><title>Re: How to calculate a leap year</title><link>https://www.infopathdev.com:443/forums/thread/28038.aspx</link><pubDate>Thu, 17 Apr 2008 16:38:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28038</guid><dc:creator>edwardvn</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28038.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28038</wfw:commentRss><description>&lt;p&gt;Thank you very much for your very quick response, I am trying but still cant do it. &lt;/p&gt;
&lt;p&gt;All i m trying to do is take a year,&amp;nbsp;say 5&amp;nbsp;and add exactly 2 years to it and return the new&amp;nbsp;date taking into account leap years etc.&lt;/p&gt;
&lt;p&gt;I have been at it for hours and just ant wok it out.&lt;/p&gt;
&lt;p&gt;Kind Regards&lt;/p&gt;
&lt;p&gt;Edward&lt;/p&gt;</description></item><item><title>Re: How to calculate a leap year</title><link>https://www.infopathdev.com:443/forums/thread/28036.aspx</link><pubDate>Thu, 17 Apr 2008 16:21:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28036</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28036.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28036</wfw:commentRss><description>&lt;p&gt;Welcome to the forum Edward.&lt;/p&gt;
&lt;p&gt;You need to use the DateDiff vbscript.&lt;/p&gt;
&lt;p&gt;Search on DateDiff here and you can find some samples.&lt;/p&gt;</description></item><item><title>How to calculate a leap year</title><link>https://www.infopathdev.com:443/forums/thread/28027.aspx</link><pubDate>Thu, 17 Apr 2008 14:47:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28027</guid><dc:creator>edwardvn</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28027.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28027</wfw:commentRss><description>&lt;p&gt;I am trying to add 5 years onto a simple date that is picked by the user, but using the adddays *365 doesnt take into account leap years.&lt;/p&gt;
&lt;p&gt;Pleae could someone be kind enough to tell me what the calculation is&lt;/p&gt;
&lt;p&gt;Thank you very much in advance.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Edward&lt;/p&gt;</description></item></channel></rss>