added advancedate option