Datetime/Date greater operator fix