Fixed equals operator for date.