<?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>Re: Default Date</title><link>https://www.infopathdev.com:443/forums/thread/2077.aspx</link><pubDate>Fri, 24 Mar 2006 14:27:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2077</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2077.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2077</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;You can make this with a code (c# for example)!&lt;br /&gt;&lt;br /&gt;Make an onloadEvent: tools-&amp;gt;Programming-&amp;gt;onload events&lt;br /&gt;&lt;br /&gt;That create you this event&lt;br /&gt;&lt;br /&gt;and add this code (C#):&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;string now = DateTime.Now.ToString("yyyy-MM-dd");&lt;br /&gt;int day = int.Parse(now.text.Substring(8, 2));&lt;br /&gt;int month = int.Parse(now.text.Substring(5, 2));&lt;br /&gt;int year = int.Parse(now.text.Substring(0, 4));&lt;br /&gt;DateTime tenafter = new DateTime(year, month, day);&lt;br /&gt;tenafter = tenafter.AddDays(10);&lt;br /&gt;thisXDocument.DOM.selectSingleNode("/CaseList/Case/Geschaeft/Termin/Dat").text = tenafter.ToString("yyyy-MM-dd");&lt;/pre&gt;   &lt;br /&gt;&lt;br /&gt;++&lt;br /&gt;&lt;br /&gt;Thierry</description></item><item><title>Default Date</title><link>https://www.infopathdev.com:443/forums/thread/1214.aspx</link><pubDate>Fri, 24 Mar 2006 14:02:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1214</guid><dc:creator>dlgross</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1214.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1214</wfw:commentRss><description>How can I make a default value for a date 10 days from now?&lt;br /&gt;TIA&lt;br /&gt;Dean</description></item></channel></rss>