Javascript - Subtract fields time
Hello,
I don't know to subtract two fields in Acrobat Forms using Javascript.
I have read a lot of information but all is using dates not time.
I have two fields: time-start and time-end and there are a third field with show the total.
Parameters of fields:
time-start (field): format time
time-end (field): format time
total-time(field): format time, time-end - time-start
The code is:
var start = this.getField("Start time").value;
var end = this.getField("End time").value;
var diff = end - start
this.getField("Total time").value = diff
Is posible to do this calculation?
Thanks in advance ![]()
