Answered
Hi everybody,
I'm trying hard to calculate the number of days from 2 fields "Date/hour" fill from the calender interface, with no success.
I have tried this approach :
- creation of 2 fields "Date_1" and "Date_2" (type Date/hour), format D/M/YY.
- creation of 2 numeric fields "Num_1" and "Num_2" for the result of the number of days using the following FormCal script :
Date2Num("Date_1", "D/M/YY").
The result is always O.
I have tried to play with different formats and regional parameters.
Where do I do wrong ? Could you please help me ? Thanks for attention.
For the calculation script try:
Date2Num(Date_1.formattedValue, "D/M/YY")
George Kaiser