fixed GreaterThan bug when dealing with Dates