var results = db.getCollection("2022-01").find({"tailno":{$in:["B-2728"]}})
while(results.hasNext()) db.max737.insert(results.next())
db.ftm_event_leg.find({"msg_time":{$gte:new Date(2023,1,1)}}).forEach(function(d) {
var datenew = new Date(d.msg_time);
datenew.setFullYear(2022);
print(datenew)
db.ftm_event_leg.update({_id: d._id}, {$set: {msg_time: datenew,report_time:datenew}});
})