asked on January 14, 2021
I am using below code in Forms 10.4.5 to set date field to not be able to select past 30 days. I get error 'Invalid Date' Has anything changed in 10.4.5 regards to this?
var todaysDate = new Date();
var year = todaysDate.getFullYear();
var month = ("0" + (todaysDate.getMonth() - 0)).slice(-2);
var day = ("0" + (todaysDate.getDate())).slice(-2);
var minDate = (year + "-" + month + "-" + day);
$('.effectiveDate input').attr('min', minDate);
0
0