I am trying to get my data saved in MongoDb to the user using loading data via AJAX and the format of the datetime in MongoDB is in this format
2017-03-16T14:11:48.700000
How i can display the datetime readable for the user or to display it localized by user location:
1. Option -> 2017-03-16 14:11:48
2. Option -> Mar 16, 2017, 14:11:48 PM
I would to get the second option using javascript.
Thanks