Would someone be able to assist me with converting the date mentioned below into ISO format for MongoDB?
var d = { storedDate: '26/06/2020 05:55:29 PM' };
I have been struggling to find the correct parameter needed to achieve the desired format. I attempted the following code snippet.
moment(d.storedDate).format("YYYY-MM-DD HH:mm Z");
Is there a way to obtain it in the form of
ISODate("2020-06-26T17:55:29.274Z")
Your guidance on this matter would be much appreciated.