jQuery datepicker to prevent past date February 12, 2023 by Tarik Try this: $("#datepicker").datepicker({ minDate: 0 }); Remove the quotes from 0.