<?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: Subtacting a day from today()</title><link>https://www.infopathdev.com:443/forums/thread/47172.aspx</link><pubDate>Sun, 20 Sep 2009 01:39:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47172</guid><dc:creator>Michael71</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47172.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=47172</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using Infopath 2003. All I want to do is set @reportdate = today()-1&amp;nbsp; &lt;/p&gt;
&lt;p&gt;AddDays is not avaible in InfoPath 2003. Can you point me to the right direction on the code nto add or post the code to do this. I only need the today()-1 part. Thanks.&lt;/p&gt;</description></item><item><title>Re: Subtacting a day from today()</title><link>https://www.infopathdev.com:443/forums/thread/47170.aspx</link><pubDate>Sat, 19 Sep 2009 21:12:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47170</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47170.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=47170</wfw:commentRss><description>&lt;p&gt;No code needed. There&amp;#39;s a function called addDays which lets you add a -1. Create a rule that sets a value when the first date is inputted. For the value, select the Fx and insert the addDays function with the correct parameters (date node and -1). Easy money.&lt;/p&gt;</description></item><item><title>Re: Subtacting a day from today()</title><link>https://www.infopathdev.com:443/forums/thread/47169.aspx</link><pubDate>Sat, 19 Sep 2009 18:28:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47169</guid><dc:creator>Michael71</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47169.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=47169</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;Will I need to use C# or VB code and if so will this have to be a Administrator approved form on to the SharePoint 2007 portal.</description></item><item><title>Re: Subtacting a day from today()</title><link>https://www.infopathdev.com:443/forums/thread/47168.aspx</link><pubDate>Sat, 19 Sep 2009 16:48:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47168</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47168.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=47168</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;In InfoPath 2007, addDays(today(), -1) should work.&lt;/p&gt;&lt;p&gt;In InfoPath 2003 you will most likely need to use code. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Subtacting a day from today()</title><link>https://www.infopathdev.com:443/forums/thread/47167.aspx</link><pubDate>Sat, 19 Sep 2009 14:59:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47167</guid><dc:creator>Michael71</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47167.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=47167</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ve tried to subtract 1 day from today in XPath, but haven&amp;#39;t gotten it to work. I used today() - 1, but this certainly did not work. I just want to subtract 1 day from today in a XPath function.&lt;/p&gt;</description></item></channel></rss>