I have a table of data, and one of the columns is for the "Available Date." I only want to show rows where the Available Date is within the next 30 days.
Here's a simplified example of the table:
<table id="properties">
<tr>
<td>Property 1</td>
<td class="availability">4/11/2016</td>
</tr>
<tr>
<td>Property 2</td>
<td class="availability">9/29/2015</td>
</tr>
</table>
I can't exactly figure out how to add 30 days to a date so I can compare the current date with the date in each table row, aside from possibly converting to milliseconds with something like Date.parse(). I'm pretty new to jQuery and JavaScript, so any insight would be appreciated.