I am getting from this Url the Datetime->
http://193.70.60.44:3000/taxi_server/api/v1.0/ride_request
"requestdatetime":"2017-03-16T20:37:18.494Z"
and i want to compare it with the datetime of now.
How can i compare this format in javascript?
I am getting from this Url the Datetime->
http://193.70.60.44:3000/taxi_server/api/v1.0/ride_request
"requestdatetime":"2017-03-16T20:37:18.494Z"
and i want to compare it with the datetime of now.
How can i compare this format in javascript?
You could calculate the milliseconds:
var milliseconds = (new Date()).getTime() - Date.parse('2017-03-16T20:37:18.494Z');