Use firestore.Timestamp field type instead of number for date/timestamp fields.
firestore.Timestamp
number
You can find an example here.
Note: timestamp helper & pipe have already been implemented.