title: Display LocalDateTime in Angular 2 using Spring REST (primeng)
body: <p>I'm using Java 8 date time in project Spring, 
  but when I have display that date, I have : [object Object]</p>
  
  <p>Server :</p>
  
  <pre><code>class Person {
     LocalDateTime dateCreation;
     ...
  }
  </code></pre>
  
  <p>and </p>
  
  <pre><code>@RestController
  public class PersonController {
      @RequestMapping(value ="/getPerson", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
      @ResponseBody
      public List&lt;A&gt; getPerson() {
          return personRepository.findAll();
      }
      ....
  </code></pre>
  
  <p>Client :</p>
  
  <pre><code>ngOnInit() {
          this.PersonService.getPersons().subscribe(persons =&gt; this.persons = persons);
      }
  </code></pre>
  
  <p>and </p>
  
  <pre><code>export class Person {
      ....
      dateCreation:Date;
  }
  </code></pre>
  
  <p>and person.html :</p>
  
  <pre><code>&lt;p-dataTable [value]="persons" ...&gt;
    &lt;p-column field="dateCreation" header="DateCreation" [sortable]="true"&gt;
          &lt;template let-col let-person="rowData" pTemplate="body"&gt;
                {{person.dateCreation|date}}
          &lt;/template&gt;
    &lt;/p-column&gt;
  </code></pre>