<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: substract two dates to have days</title><link>https://www.infopathdev.com:443/forums/thread/78132.aspx</link><pubDate>Mon, 30 Apr 2012 14:50:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:78132</guid><dc:creator>walspec</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/78132.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=78132</wfw:commentRss><description>Thank you very much Jo-Anne for your answer,

i tried it on a simple substract between two dates and it&amp;#39;s working perfectly, but now i have one more complicated one to realize, i tried to do 
the same method but it didn&amp;#39;t worked, it will be awsome if you can help me with this one

i&amp;#39;m try&amp;#39;in to do this in my field : (Today() - PlannedStart) * Amount / ((PlannedStart) - PlannedEnd + 1)

how can i do it

Thanks a lot</description></item><item><title>Re: substract two dates to have days</title><link>https://www.infopathdev.com:443/forums/thread/78131.aspx</link><pubDate>Mon, 30 Apr 2012 14:30:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:78131</guid><dc:creator>Jo-Anne Alfafara</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/78131.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=78131</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;InfoPath doesn’t have a function that will return the difference between two dates. For cases like this, we use a tool called &lt;a href="http://www.qdabra.com/en/products/qRules_new.aspx"&gt;qRules&lt;/a&gt; – it has a command called DateDiff that will simply calculate the difference for you.&lt;/p&gt;&lt;p&gt;Meanwhile, you can also do it the long way by adding rules to your form – see sample attached.&lt;/p&gt;&lt;p&gt;Hope that helps!&lt;/p&gt;&lt;p&gt;Jo-Anne&lt;/p&gt;</description></item><item><title>substract two dates to have days</title><link>https://www.infopathdev.com:443/forums/thread/78118.aspx</link><pubDate>Mon, 30 Apr 2012 11:52:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:78118</guid><dc:creator>walspec</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/78118.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=78118</wfw:commentRss><description>Hello,

can you provide me please with a formula( not XPath coded because i found a script wich is not working) to substract 2 dates
in infopath to have result in days

Thanks a lot</description></item></channel></rss>