optimize datepicker

optimize datepicker