In my react native app I am setting the date using the following:
new Date().getTime()
In my Swift App im using:
Date().timeIntervalSince1970
Is there a function or something I can use in Javascript which is similar to Date().timeIntervalSince1970 or vice-versa (the data is being stored in firebase cloud storage).
Because im using different formats, messages are not showing in the correct order.