added date gating

fixit bug in color red