On my website, I have an object that contains a field named available_at
with the date in the format of 2019-08-08
I have a working HTML table utilizing Vue bindings but I am unsure how to compare the timestamp above using the built-in Date.now() method
<tr :class="[dateEvent.priority + '-priority', 'status-' + dateEvent.status]">
<td v-if="dateEvent.task_typet_id === '2' && dateEvent.name === 'Task Title' && dateEvent.available_at === Date.now()">{{ dateEvent.task_identifier }}</td>
</tr>
What would be the correct way to check this field against the current date?