how to use variable key as dictionary key in javascript
var date = d + "-" + mon + "-" + da.getFullYear()
tbl.insertOne({
"_id": 104,
"Date": {
[date]: {
"Activity": "Add agent",
"dateTime": date.toUTCString()
}
}
})