Added lessDate and greaterDate for date comparison