У меня есть этот код, где он обычно отображает все количество строк в базе данных. Есть ли способ сравнить возвращаемую дату (обещанную дату) с javascript или jquery, чтобы я мог выделить все даты, которые меньше, чем 3 дня от сегодняшней даты. Спасибо
<div class="container">
<table id="requirement_table" class="table table-bordered table-hover table-sm" style="width:100%">
<thead>
<tr>
<th>Applicant Name</th>
<th>Requirement</th>
<th>Remarks</th>
<th>Promised Date</th>
<th>Completed</th>
</tr>
</thead>
<tbody>
{% for req in app_requirements %}
<tr>
<th>{{ req.applicant }}</th>
<th>{{ req.requirement }}</th>
<th>{{ req.remarks }}</th>
<th>{{ req.date_promised }}</th>
<th>{{ req.completed }}</th>
</tr>
{% endfor %}
</tbody>
</table>
</div>