Change return value to ngModel so that endDate is included in result value