I need to compare two dates in my React Native app: current date with the server one in UTC format. What's the best approach here?
I thought about converting two dates into milliseconds and then converting them.
Example:
2019-06-20T14:26:58Z
- milliseconds
current date
- milliseconds
So, what is the best approach here?
It's React Native, so it should work without connected chrome debugger.