Need to calculate the datetime difference for the datetime field saved in string format in MongoDB
问题 Sample Documents : { "_id" : ObjectId("50ed90a55502684f440001ac"), "time" : "2020-05-14T14:12:46.058-0400", "ServerTimeStamp" : "2020-05-14T14:12:46.058-0400" } { "_id" : ObjectId("50ed90a55502684f440001ad"), "time" : "2020-05-14T15:12:46.058-0400", "ServerTimeStamp" : "2020-05-14T14:12:46.058-0400" } { "_id" : ObjectId("50ed90a55502684f440001ae"), "time" : "2020-05-14T18:12:46.058-0400", "ServerTimeStamp" :"2020-05-14T14:12:46.058-0400" } I would like to calculate the time difference of