假设这是我的数据:
[
{"Id_Cust": "4145","firstName": "Albade","lastName": "Maazou", "gender": "female","date": "031981"},
{"Id_Cust": "5296", "firstName": "Rafael","lastName": "Oliveira","gender": "male","date": "061987"},
{"Id_Cust": "6192","firstName": "Abdul Rahman","lastName": "Budjana","gender": "male","date": "011990"}
]
我试着用$datetostring
和$datefromstring
我也try 了格式化,但仍收到错误:-
但是,什么都没发生.
OperationFailure: PlanExecutor error during aggregation :: caused by :: an incomplete date/time string has been found, with elements missing: "031981", full error: {'ok': 0.0, 'errmsg': 'PlanExecutor error during aggregation :: caused by :: an incomplete date/time string has been found, with elements missing: "031981"', 'code': 241, 'codeName': 'ConversionFailure'}