in reply to Changing dates

Most databases have time and date functions, maybe you can let the SQL do the math.