I am trying to export data updated in mongodb in last 7 days with mongoexport command from linux terminal I am using the following command
mongoexport --db your_database --collection your_collection --query '{ "updatedAt": { "$gt": new Date(new Date().getTime() - (7 * 24 * 60 * 60 * 1000)) } }' --out output.json
but it's throwing error not is not a validjson invalid character '.' after constructor argument