<?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>Qdabra qRules</title><link>https://www.infopathdev.com:443/forums/131.aspx</link><description>qRules adds support to your InfoPath  forms. With qRules, you can add features to your form that require code, but without having to write it. </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: qRules  DateDiff</title><link>https://www.infopathdev.com:443/forums/thread/106174.aspx</link><pubDate>Thu, 14 Apr 2016 22:46:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106174</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106174.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=106174</wfw:commentRss><description>&lt;p&gt;You need to use a concat formula. In the formula editor:&lt;/p&gt;&lt;blockquote style="margin-right:0px;" dir="ltr"&gt;&lt;p&gt; concat(&amp;quot;DateDiff /date1=&amp;quot;, &lt;em&gt;&lt;u&gt;EndDate&lt;/u&gt;&lt;/em&gt;, &amp;quot; /date2=&amp;quot;, &lt;em&gt;&lt;u&gt;today()&lt;/u&gt;&lt;/em&gt;,&amp;quot; /component=days&amp;quot;)&amp;nbsp;&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>qRules  DateDiff</title><link>https://www.infopathdev.com:443/forums/thread/106172.aspx</link><pubDate>Thu, 14 Apr 2016 22:07:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106172</guid><dc:creator>scrivies</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106172.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=106172</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I need to find the number of days between today and InfoPath field: &amp;nbsp; EndDate&lt;/p&gt;&lt;p&gt;I have tried every DateDiff command syntax I can think of after reading thru&amp;nbsp;the documentation but I just can&amp;#39;t get it right:&lt;/p&gt;&lt;p&gt;&lt;strong&gt;DateDiff /date1=/my:myFields/my:group1/my:group2/my:EndDate /date2=Today() /component=days&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;I have set a rule: Set fields value:&amp;nbsp; COMMAND&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;with the above in the value.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;In preview, the ERROR field shows:&amp;nbsp; &amp;quot;The first date is invalid.&amp;quot;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;What am I missing?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>