MongoDB.live, free & fully virtual. June 9th - 10th. Register Now

How can i insert null in date data type of mongodb

q1) pls tell how can I do it using mongo compass and also from mongo shell in date datatype

for ex we keep date in this formate , what i have to do is, i want to keep it null
and want to filter it in c# using mongo driver.

{
  "dateFrom": {
        "$date": {
            "$numberLong": "1569888000000"
        }
    }
    }
}