Articles → MONGODB → Date And Timestamp Function In Mongodb
Date And Timestamp Function In Mongodb
Purpose
Example
db.DateTimeCollection.insertOne({
Date: new Date(),
Time: new Timestamp()
})
Click to Enlarge
Click to Enlarge
Click to Enlarge
Posted By - | Karan Gupta |
|
Posted On - | Monday, April 3, 2023 |