¿Cómo configurar minDate a la fecha actual en jQuery UI Datepicker?
Este es mi código y no funciona correctamente. Quiero establecerminDate
a la fecha actual. ¿Cómo puedo hacerlo?
$("input.DateFrom").datepicker({
changeMonth: true,
changeYear: true,
dateFormat: 'yy-mm-dd',
maxDate: 'today',
onSelect: function(dateText) {
$sD = new Date(dateText);
$("input#DateTo").datepicker('option', 'minDate', min);
}