Solved some issues about DatePicker