title: How to assign date as LocalDate in Angular Typescript
body: <p>I am trying to make angular page and using typescript for it and i am using mat date picker for selecting date, backend method is waiting a parameter as LocalDate</p>
  
  <pre><code>sendStartDateChangeEmail(updateData: { employeeId: number, selectedDate: string }) {
      const requestParams = new HttpParams().append('requestedStartDate', updateData.selectedDate);
      return this._http.post(`/request-start-date-change/` + updateData.employeeId, null, {params: requestParams})
        .map((response: any) =&gt; {
        if (response['success'] !== true) {
          throw Observable.throw(response['errorMessage']);
        }
        return response;
      });
    }
  </code></pre>
  
  <p>as you see above updateData.selectedDate is a string, in backend method is accepting date as LocalDate not string.</p>
  
  <pre><code>public ResponseEntity&lt;Boolean&gt; sendStartDateChangeRequest(@PathVariable(name = "employeeId") long employeeId,
                                                             @RequestParam(name = "requestedStartDate") LocalDate requestedStartDate)
  </code></pre>
  
  <p>How can i assign variable as LocalDate in front end?</p>