long compare
removed crappy code

removed the unnecessary comparisons and cleaned code
some how applying color to cell is making the dates to cast to epoch
type.