$(document).ready(function () {
var bc;
$('#kullaniciTableBody tr').each(function () {
bc = $("#kullaniciTableBody td.lastday").attr("data-lastday");
});
lastDay = new Date(bc);
nowDate = new Date();
daysLeft = new Date(lastDay - nowDate);
result = Math.floor(daysLeft / 1000 / 60 / 60 / 24);
$(this).find(".lastday").text(result);
});
Hello! I want to subtract today's date from the date field on my table and get the remaining number of days.