Show an image based on date
I'm trying to show a check mark image based on date, the date format is March 28, 2021 for an event list
For example:
if the event date is on March 29, 2021 then it will show the following image (green checkbox)
<img src="https://i.imgur.com/iw9fm7A.jpg">
but if today date was March 28, 2021, and the event has not happened yet then it will not show any images, just blank.
Code:
<table width="80%" border="1" cellspacing="0" cellpadding="0">
<tr>
<td>Event Name</td>
<td>Event Date</td>
<td>Completed? </td>
</tr>
<tr>
<td>E-Bike meet up at <strong>Los Angeles, Griffith Park</strong></td>
<td>March 29, 2021</td>
<td>Show Checkbox Here</td>
</tr>
<tr>
<td>E-Bike meet up at <strong>Los Angeles, State Historic Park</strong></td>
<td>April 5, 2021</td>
<td>Leave empty</td>
</tr>
</table>
from Recent Questions - Stack Overflow https://ift.tt/3sBM2X8
https://ift.tt/eA8V8J
Comments
Post a Comment