<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Need a simple code to add days to a date in Infopath 2003 / JavaScript</title><link>https://www.infopathdev.com:443/forums/thread/39643.aspx</link><pubDate>Tue, 17 Mar 2009 22:44:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39643</guid><dc:creator>RhysAZ</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39643.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=39643</wfw:commentRss><description>&lt;p&gt;Hi- I would like to know this as well. I&amp;#39;m using Infopath 2003. My situation- I have a date picker, which by rules I set, will only allow the user to select a Monday. Now, when they select that Monday, I would like that date to auto populate into a &amp;quot;Monday&amp;quot; text box (or expression box), and then auto populate the &amp;quot;Tuesday&amp;quot; text box (or expression box )next to it,&amp;nbsp;with it&amp;#39;s correct date, based off of what was selected for Monday. Basically a [Date], [Date] +1, [Date] +2, etc. I know it can be done easily in IP2007 (but I&amp;#39;m using IP2003)&amp;nbsp;but I&amp;#39;m not sure of the coding or how to enter the coding in IP2003. Please help. Thanks.&lt;/p&gt;</description></item><item><title>Re: Need a simple code to add days to a date in Infopath 2003 / JavaScript</title><link>https://www.infopathdev.com:443/forums/thread/38935.aspx</link><pubDate>Wed, 25 Feb 2009 17:38:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38935</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38935.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=38935</wfw:commentRss><description>&lt;p&gt;Hi there, I am trying to accomplish something similar.&amp;nbsp; Using IP2003 and have a date picker field in which the user will select a date, then a second date field that I would like to autopopulate with a date 7 days in the future.&amp;nbsp; I&amp;#39;ve tried adding the code from the link as you suggested but it doesn&amp;#39;t seem to do anything and I&amp;#39;m not sure how to link it so that the code will set the date in the second field.&lt;/p&gt;
&lt;p&gt;Any more help you could offer is greatly appreciated!&lt;/p&gt;</description></item><item><title>Re: Need a simple code to add days to a date in Infopath 2003 / JavaScript</title><link>https://www.infopathdev.com:443/forums/thread/37698.aspx</link><pubDate>Tue, 27 Jan 2009 05:23:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37698</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37698.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=37698</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Add an on after change event to the first date field and write the code as described in the below links.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/aa239571.aspx"&gt;http://msdn.microsoft.com/en-us/library/aa239571.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;http://www.infopathdev.com/forums/p/1663/7483.aspx#7483&lt;/p&gt;</description></item><item><title>Need a simple code to add days to a date in Infopath 2003 / JavaScript</title><link>https://www.infopathdev.com:443/forums/thread/37681.aspx</link><pubDate>Mon, 26 Jan 2009 21:52:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37681</guid><dc:creator>shivajidatta</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37681.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=37681</wfw:commentRss><description>Hi,

Image there are 2 fields to hold 2 dates.

What code do I need to write (and where) so that whenever a date/updated is selected in the first field,  the second field is automatically populated with the date 2 days after the slected date in the first field.  i.e. Second date = first date + 2 days.

I need to do this in InfoPath 2003 and Javascript.

Thanks!</description></item></channel></rss>