I convert a date to a number by running
Date.parse(doc.createdAt);
sO i GET THIS:
1576699528000
which probably turns it into a string as its getting passed from the server to the front end and then back to the server
How do I turn it back into a date object?