You said you were looking for ideas. Just a thought, but you could let the 
browser do this for you with a little javascript on your form.

Assuming the following HTML table:

<table>
<tr>
<td>Yada</td>
<td class="time">2014-12-03</td>
</tr>
<tr>
<td>Yada</td>
<td class="time">2014-12-05</td>
</tr>
<tr>
<td>Yada</td>
<td class="time">2014-12-04</td>
</tr>
</table>

This JavaScript code will highlight the 1st and 3rd items:

var now = new Date('2014-12-05');  // for example only 
$('.time').each(function() {
    x = new Date($(this).text());
    if (x < now) {
        $(this).css('background-color', 'red');
        $(this).css('color', 'white');
    }
});

Head over to jsfiddle(DOT)net to try it out with your actual form content.

Hope this helps.
-Jim

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"

Reply via email to