Datepicker: Implement a valueAsDate() method.