0👍
Because you have them the wrong way round. Min would be from, and max would be to.
ticks: {
min: $("#date_from").datepicker("getDate"),
max: $("#date_to").datepicker("getDate"),
fontSize: 10,
display: true,
}
Source:stackexchange.com