Refactor the date pass in label engine