Please help me with a java script for adobe acrobat dc A user input field is available with a date given by the user.
The script should read this field and give the date, month and year in three seperate output fields I have a sample script here below, but when tried says 'syntax error'
var beginDate = this.getField("DateInput").valueAsString;
if (beginDate=="") event.value = " ";
esle {
var oDateValue = util.scand("mm dd, yyyy",beginDate);
event.value = util.printd("yyyy", oDateValue);}
You have an error in your code. you misstyped esle, replace it with else.