In my mongoDB i have 10,000s of rows that look like this:
{ "_id" : ObjectId("5a037d23f535be649b3ffb64"), "userName" : "drusso", "PRGroup" : "lbs", "PRType" : "Front squat", "PRValue" : "190", "PRDate" : "2017-6-8" }
But in my query i need to sort the PRDate field, which doesn't work when there are dates with 2 digit months since these are stored as strings. So i need a way to update all the rows to yyyy-mm-dd so the sort query works.
I don't know mongo query structures very well so I'm looking for some help. Thanks mucho gracias in advance.