I've had to deal with an earlier issue concerning time which was resolved. This time I wanted to do the same except for using the formcalc since everything I've read claims to be easy to use. So either I missed something or it's not as easy as it seems. Here is the problem:
I have two field boxes already containing times in HH:MM format. All I want to do is subtract one field box from the other. Simple arithmatic except that I'm dealing with times. I've already done the java route with the help of others here. So how do I use the formcalc?
I use the formcalc and all I get as an answer is "0"
field one = 10:30
field two = 8:30
field three should be 1:30
field one - field 2
all I get is "0" where it should be 1:30
So what I'm I doing wrong? with formcalc in livecycle adobe pro 8
If you are getting zero then either the calculation order of the fields is wrong or you are not converting the time correctly to a number.
What are the names of the fields?
What is the "Data format" for each field?
Have you read the LiveCycle Scripting reference about date and time calculations?
George Kaiser