How can i insert current date in robomongo?

2.6k views Asked by At

I want to add a date field in mongo db. I am using robo mongo. How can i do that?

If it is a string we can do it by "", if it is a number we can do it by NumberInt. What is the datatype for date field? Also, how can I insert current date?

1

There are 1 answers

2
magirtopcu On BEST ANSWER

db.yourcollection.insert({date_field_name:new Date()})