$(document).ready(function () { debugger; var startDate = $find('<%= RdpStartDate.ClientID %>'); var endDate = $find('<%= RdpEndDate.ClientID %>'); var end = endDate.get_selectedDate(); var start = startDate.get_selectedDate(); startDate.set_minDate(end-90); });Estoy tratando de establecer el valor mínimo de la fecha de inicio en menos de 90 días de la fecha de finalización, todo antes de que se deshabilite, pero esto no funciona, ayuda, por favor.
Intenta cambiar el código a lo siguiente:
end.setDate(end.getDate() - 90); startDate.set_minDate(end);Actualizar:
const endNinety = new Date(); endNinety.setDate(end.getDate()) endNinety.setDate(endNinety.getDate() - 90); startDate.set_minDate(endNinety);