fix(datepicker): correctly parse date if dateType is string (fixes #604)