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
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.