title: How to get firestore timestamp
body: <p>I'm trying to get the timestamp of a document that I created in firestore, but what I get is this:</p>
  
  <p><a href="https://i.stack.imgur.com/I4A6N.png" rel="noreferrer"><img src="https://i.stack.imgur.com/I4A6N.png" alt="enter image description here"></a></p>
  
  <p><strong>myService.ts</strong></p>
  
  <pre><code>getDomiciliarios() {
  this.domiciliarios = this.afs.collection('domiciliarios').snapshotChanges().map(actions =&gt; {
    return actions.map(a =&gt; {
      const data = a.payload.doc.data() as Domiciliario;
      const id = a.payload.doc.id;
      const date = firebase.firestore.FieldValue.serverTimestamp();
      return { id, ...data, date };
    });
  });
  
  return this.domiciliarios;
  }
  </code></pre>
  
  <p><strong>myComponent.ts</strong></p>
  
  <pre><code>ngOnInit() {
  const domiciliarios = this.fs.getDomiciliarios()
    .subscribe(data =&gt; this.dataSource.data = data, date =&gt; date);
  }
  </code></pre>
  
  <p><strong>myComponent.html</strong></p>
  
  <pre><code>&lt;ng-container matColumnDef="fecha"&gt;
    &lt;mat-header-cell *matHeaderCellDef mat-sort-header&gt; Fecha &lt;/mat-header-cell&gt;
    &lt;mat-cell *matCellDef="let domiciliario"&gt; {{ domiciliario.date }} &lt;/mat-cell&gt;
  &lt;/ng-container&gt;
  </code></pre>
  
  <p>How can I print that timestamp, should I have previously created it?</p>