fix(datepicker): fix startDate attribute with a date object