new rules for Date, dateEarlierOrEq, dateLaterOrEq has been added