here is the query
[
{
\"$project\": {
\"formattedDate\": {
\"$dateToString\": { \"format\": \"%Y-%m-%d\", \"date\":
If you want to update timestamp. with the current date and time use the below query.
db.getCollection('movie').update(
{"applicationId":"2b5958d9629026491c30b42f2d5256fa8","type":"shortcut"},
{$set : {userName:"vipin+testkm23052020@applozic.com",created_at: NumberLong(new Date()),"updated_at":NumberLong(new Date()),"docIndex":UUID()}}, {multi:true, upsert: false}
)