Automatic change the color of graphic elements

hello

is it possible to assign code to graphic element so when it’s 1/1/07, it displays red color, and 1/2/07 blue? or is it possible to show different graphics elements according to date? that could also be solution to my problem.

please help