added a dateCompareTo in Elements