As a Dr. Frankenstein of coding, I have managed to cobble together a table as exampled [here][1], utilising datatables and UK Date Sorting. The final piece of this puzzle is to
Give that particular td some class say "clsdate".Then point the class and find the html and convert that to date. Find the difference and do the necessary
$('table').find(".clsdate").each(function(index,element){
var tdDate=new Date($(element).html());
var currDate=getDate();
var diff=currDate-tdDate;
if(diff<0)
{
$(element).parent('tr').css('display','none');
}
});
$(document).ready(function() {
$("#table_id").dataTable({"aoColumnDefs" : [
{"aTargets" : [2] , "sType" : "uk_date"}]});
$('TD.date').each(function( index ) {
var q = new Date();
var m = q.getMonth();
var d = q.getDay();
var y = q.getYear();
var date = new Date(y,m,d);
if(new Date($(this).text()) < date) {
$(this).parent().attr("style", "display: none")
}
});
});
and add a date class to the column that contains the date.