<?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: set date to last Sunday in JScript</title><link>https://www.infopathdev.com:443/forums/thread/13505.aspx</link><pubDate>Fri, 26 Aug 2005 20:21:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13505</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13505.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13505</wfw:commentRss><description>Hi Jeff,&lt;br /&gt;&lt;br /&gt;You can search the forum by clicking on the search link in the upper right hand section. The search box in the upper left only searches the site. Sorry about that!  &lt;br /&gt;&lt;br /&gt;Check this thread out:&lt;a target="_blank" href=http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=713&gt;http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=713&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Cheers&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: set date to last Sunday in JScript</title><link>https://www.infopathdev.com:443/forums/thread/13504.aspx</link><pubDate>Fri, 26 Aug 2005 13:35:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13504</guid><dc:creator>jeffshex</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13504.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13504</wfw:commentRss><description>I looked for his post and could not find it.  Would you link it for me?&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Jeff</description></item><item><title>Re: set date to last Sunday in JScript</title><link>https://www.infopathdev.com:443/forums/thread/13503.aspx</link><pubDate>Thu, 25 Aug 2005 23:58:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13503</guid><dc:creator>Shanthi Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13503.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13503</wfw:commentRss><description>Patrick added this in one of the recent forum posts. This has pretty simple code on how to subtract days.&lt;br /&gt;&lt;br /&gt;Hope this helps!&lt;br /&gt;&lt;br /&gt;Shanthi&lt;br /&gt;InfoPath Dev India</description></item><item><title>Re: set date to last Sunday in JScript</title><link>https://www.infopathdev.com:443/forums/thread/13502.aspx</link><pubDate>Thu, 25 Aug 2005 23:43:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13502</guid><dc:creator>Shanthi Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13502.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13502</wfw:commentRss><description>You will need to get the current day by calling GetDay and then break up today's date into its various components, subtract the appropriate number from the day component and set the date back using the all other components and the updated Day component. It should calculate the date correctly.&lt;br /&gt;&lt;br /&gt;Did you try to run the code in debugger to see what causes InfoPath to lock up?&lt;br /&gt;&lt;br /&gt;Shanthi&lt;br /&gt;InfoPath Dev India</description></item><item><title>set date to last Sunday in JScript</title><link>https://www.infopathdev.com:443/forums/thread/12538.aspx</link><pubDate>Thu, 25 Aug 2005 14:51:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12538</guid><dc:creator>jeffshex</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12538.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12538</wfw:commentRss><description>I'm trying to do this but getting nowhere.  The only code i've found is on the msdn website and it hangs up infopath causing it to lock up.&lt;br /&gt;All I want is when they open the form, it auto fills the date to the Sunday that just passed.&lt;br /&gt;Any body have any examples or ideas on this one?&lt;br /&gt;</description></item></channel></rss>