I’ve tried easy function like this, but it keep gives me “NaN” value in console.
var start = $('#my_datepicker_id').val(),
end = $('#my_datepicker_id_2').val(),
diff = new Date(end - start),
days = diff/1000/60/60/24;
days;
I’ve tried easy function like this, but it keep gives me “NaN” value in console.
var start = $('#my_datepicker_id').val(),
end = $('#my_datepicker_id_2').val(),
diff = new Date(end - start),
days = diff/1000/60/60/24;
days;