added datepicker() method
fixed