Can you clarify me one thing. So that i can help you.
What result your are expecting for your solution and which field you want
display in that result?
--
Anuma Chinthapalli/ http://www.GGKTech.com
So as you know, there is no DateDiff function in InfoPath, in the
future it will be their as InfoPath will use Xpath 2.0.
But meanwhile many articles explain how to use code.
Tnx to Geek Alex Pojidaev, there is a way to do this out-of-the-box,
even within repeating tables
Follow the step by step guide on
http://blueinfopath.wordpress.com/2009/11/03/datedifference-without-code/
In case it work, don't forget to mention this post by leaving a
comment or by rating this post (This helps others also)
Frederik Van Lierde
http://SilverSandsAssociates.com.wordpress.com
Twitter: http://Twitter.com/SilverSands_IT
If that second field calculated value is null or empty then it will shows by
default NAN value. If you add same thing in rules like field1 is not equal to
blank then set above value to field2. Then you will not get NAN value.
You will not get result by using above formula like now() - field1.
I also I'm looking for a code to calculate time difference. The link
you posted calculates the DAY difference. Do you have a link of idea
of how to calculate the hours instead of days?
greets.
On 3 nov, 07:55, Frederik Van Lierde <frede...@blueoceansgroup.com>
wrote:
> Hi
>
> So as you know, there is no DateDiff function in InfoPath, in the
> future it will be their as InfoPath will use Xpath 2.0.
> But meanwhile many articles explain how to use code.
>
> Tnx to Geek Alex Pojidaev, there is a way to do this out-of-the-box,
> even within repeating tables
>
> Follow the step by step guide on
>
> http://blueinfopath.wordpress.com/2009/11/03/datedifference-without-c...