Hi,
At the back end,create a procedure which returns the dataset.
In the procedure get the datedifference of databasecolumn_date and systemdate.
Check the difference and return the result accordingly.
Check out this link for usuage.
http://www.w3schools.com/sql/func_datediff.asp[
^]
Hope this helps.