Ich versuche, ein PDF-Formular für ein bestimmtes Datum zu validieren. Das Formular fragt nach einem Datum und dieser Tag darf nicht länger als 3 Tage zurückliegen.Pdf Formular Datum Validierung
Was ich bisher ist:
var todayDate = new Date();
var today = todayDate.getTime();
//Date minus 3 days in milliseconds
var dayLimit = today - (259200000);
//Entered date is less than current date reject
if (event.getTime < dayLimit) {
app.alert("You must apply for within 3 days")
};
Aber es funktioniert nicht, was mache ich falsch?
Dank
"Funktioniert nicht" ist keine technische Beschreibung des Problems. – Rob