added < > logic to date code for shading cells.