Hello Everyone ,For the below mentioned document,i want to change datatype of statusDate from string to Date in history array .
{
"_id": {
"$oid": "636368f52cc3504dc02d1c92"
},
"isDeleted": false,
"isMigrated": true,
"createdBy": {
"userId": 1631,
"userName": "saratg"
},
"modifiedBy": {
"userId": 1647,
"userName": "sabangalurupos"
},
"hexTagId": "918907048020000003E9",
"tagSerialNo": "137438954473",
"history": [
{
"status": {
"statusId": 1,
"status": "INVENTORYRETAILER",
"statusDate": "2015-10-13 14:17:31"
},
"location": {
"locationId": 2,
"status": "Sub Agent"
},
"retailer": {
"retailerId": 10004668,
"name": "Bangaluru Sales",
"retailerType": {
"typeId": 3004,
"name": "SalesRetailer"
}
}
}
]
}