<?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: Subtracting Days Based on 1 Fields Value</title><link>https://www.infopathdev.com:443/forums/thread/100557.aspx</link><pubDate>Fri, 19 Dec 2014 17:15:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100557</guid><dc:creator>sicky</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100557.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=100557</wfw:commentRss><description>Thanks for the reply Hilary, &lt;br /&gt;&lt;br /&gt;

Ill have a search around thank you again.</description></item><item><title>Re: Subtracting Days Based on 1 Fields Value</title><link>https://www.infopathdev.com:443/forums/thread/100556.aspx</link><pubDate>Fri, 19 Dec 2014 16:59:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100556</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100556.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=100556</wfw:commentRss><description>&lt;p&gt;Unfortunately, even though you have the date &lt;em&gt;formatted&lt;/em&gt; to include the day of the week, the actual XML value won&amp;#39;t have it - it will be 2014-12-18 or whatever the actual date is.&lt;/p&gt;
&lt;p&gt;So - you&amp;#39;ll need a way to get the day of week given a date. This can be done with code (or qRules) - and there may already be an existing free web service somewhere that does this - I did a&amp;nbsp;quick search and didn&amp;#39;t see anything but it may be worth investigating a bit. Sorry I don&amp;#39;t have better news for you!&lt;/p&gt;</description></item><item><title>Subtracting Days Based on 1 Fields Value</title><link>https://www.infopathdev.com:443/forums/thread/100553.aspx</link><pubDate>Fri, 19 Dec 2014 16:39:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100553</guid><dc:creator>sicky</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100553.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=100553</wfw:commentRss><description>Hi All, &lt;br /&gt;&lt;br /&gt;
Ive been trying to get this work, but im at a lost.&lt;br /&gt;
I have 2 Fields:&lt;br /&gt;&lt;br /&gt;
Date: (with a Type set as Date, Formatted as Day, Date, Year, Ie Friday, 19th 2014, with a Default value of Today()&lt;br /&gt;
Backup Date ( Same as above , but with no default value set)&lt;br /&gt;&lt;br /&gt;

What im looking for is:&lt;br /&gt;
When the Date Field contains, Tuesday Wednesday Thursday Friday it sets the Date on the Backup Date field to Today(), -1. I can set the Backup Date field with a default off Adddays(Date, -1) to get that value. 
&lt;br /&gt;&lt;br /&gt;
However When the Date field contains Monday, i need the Backup Date to say the Friday before, so my calculation would be set Adddays(Date, -3) however i can get this to work. &lt;br /&gt;
I have the following set on Rules for both Date, and Backup Date fields. :&lt;br /&gt;
Date Contains  &amp;quot;monday&amp;quot;
Set Field  Backup Date addDays(Date, -3)&lt;br /&gt;
for both fields i fell into that trap before , but i cannot get it working. &lt;br /&gt;
&lt;br /&gt;
Any ideas anyone?</description></item></channel></rss>