Hi John and all!
I found this:
http://www.bizsupportonline.net/info...s-formulas.htm
but it didn't work for me

(
note:
when I entered the functions: number, substring and floor; and clicked on
'verify formula', the infopath displayed Error indicating that there
shouldn't be any spaces between numbers 'startDate, 9, 2' etc.
So, I repaired the formulas deleting all spaces between numbers, but it
still didn't work after that.
I'm starting to believe that there is no other way to do this than code,
which I'm trying to avoid. So any ideas would be greatly appreciated.
thx,
jano
"John" wrote:
> Hi
>
> How can I calculate days from the two dates entered in date time picker
> fields on winform by a user?
>
> Thanks
>
> Regards
>
>
>
>
>