I am working with an object that contains a JavaScript date, structured like this:
var obj = {
startTime: new Date()
....
}
When AngularJS converts the object to JSON (for instance, for transmission via $http), it transforms the date into a string as shown below:
2015-12-20T15:35:15.853Z
Instead of the string representation, I need a timestamp. What would be the most effective approach to achieve this?