finalizing angular with datepicker