For my React Native app, I currently set the date
like this:
new Date().getTime()
For my Swift App, I use:
Date().timeIntervalSince1970
Is there a JavaScript equivalent to Date().timeIntervalSince1970
, or vice versa (as the data is stored in Firebase cloud storage)?
Due to the different formats being used, messages are not displaying in the correct order.