Why does my Acrobat X Pro debugger complain this script?
My Javascript code for calculating a value from a specific date difference the debugger complains with no understandable reasons.
E.g. "GetFullYear is not a function" although These are normal Javascript functions.
This is the code:
var PastDate = this.getField("Datum1").value;
var jetzt = new Date();
PastDate = PastDate.split(".");
var DateDiff = jetzt.GetFullYear()-PastDate[2] + 12*(jetzt.GetMonth() - PastDate[1]);
this.getField("€_2").value = DateDiff / 12 * this.getField("Prozent1").value / 100 * this.getField("€").value;
Could anybody inform me please what is wrong at the script and where I can find a suiting documentation to easily build such scripts?
Cause the Adobe Javasript API Acrobat DC SDK Documentation does not really help.
Thank you very much.
