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

An alternative fix for the startDate usage with date object binding.
In this alternative, I have moved the date and time instancing from the attribute values into the dateparser so that the code can be uniform and called elsewhere.