substract two dates to have days - InfoPath Dev
in

InfoPath Dev

substract two dates to have days

Last post 04-30-2012 07:50 AM by walspec. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 04-30-2012 04:52 AM

    substract two dates to have days

    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
  • 04-30-2012 07:30 AM In reply to

    Hi,

    InfoPath doesn’t have a function that will return the difference between two dates. For cases like this, we use a tool called qRules – it has a command called DateDiff that will simply calculate the difference for you.

    Meanwhile, you can also do it the long way by adding rules to your form – see sample attached.

    Hope that helps!

    Jo-Anne

    Jo-Anne Alfafara
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™
  • 04-30-2012 07:50 AM In reply to

    Re: substract two dates to have days

    Thank you very much Jo-Anne for your answer, i tried it on a simple substract between two dates and it's working perfectly, but now i have one more complicated one to realize, i tried to do the same method but it didn't worked, it will be awsome if you can help me with this one i'm try'in to do this in my field : (Today() - PlannedStart) * Amount / ((PlannedStart) - PlannedEnd + 1) how can i do it Thanks a lot
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.