I have this code where it normally displays all of the number of rows on database. Is there a way to compare the returned date(Promised Date) to javascript or jquery so i can highlight all of the dates that are less than 3 days from the today's date. Thanks
<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>