Hi Tobias,
Out of interest I looked to see if I could find a solution and found the following code that works in an HTML table, but because of my lack of programming skills I would not have a clue where or how to try and get the script to work in Tablepress:
HTML
<table>
<tr><td>1</td><td>coca cola</td><td>2014-08-17</td></tr>
<tr><td>2</td><td>bread</td><td>2014-02-13</td></tr>
<tr><td>3</td><td>apple</td><td>2014-01-20</td></tr>
<tr><td>4</td><td>cookies</td><td>2014-04-03</td></tr>
</table>
Jquery
var parents = document.getElementsByTagName(“tr”)
for (var i = 0, ii = parents.length; i < ii; i++) {
var parent = parents[i],
children = parent.children
for (var j = 0, jj = children.length; j < jj; j++) {
var elem = children[j]
if (j % 3 === 2) {
var dateElement = elem.innerHTML;
var dateArray = dateElement.split(“-“);
var prevTime = new Date(dateArray);
var thisTime = new Date();
var diff = prevTime.getTime() – thisTime.getTime();
var days = 1000*60*60*24;
var diffInDays = Math.ceil(diff / days);
if (diffInDays < 0) {
elem.style.color = “#ffa500”;
}
else if (diffInDays <= 14) {
elem.style.color = “#ff0000”;
}
}
}
}
Any ideas if it may be possible?
Many thanks.