Nearby lessons
5 of 22📘 MongoDB: Data Types
MongoDB supports a variety of data types to store different kinds of information in documents.
These data types help manage text, numbers, arrays, objects, dates, and more.
Common MongoDB Data Types
Example01
Loading editor…
Example document using multiple data types
Example02
Loading editor…
Example of MongoDB Date Data Type (UTC Time)
Example03
Loading editor…
Example of Central European Time
Example04
Loading editor…
Example of Eastern Standard Time
Example05
Loading editor…
Example using Local Time Zone
Example06
Loading editor…
Example using new Date() for current time
Example07
Loading editor…
Create a collection named 'personal'
Example08
Loading editor…
Insert example document
Example09
Loading editor…
Insert another document
Example10
Loading editor…
Insert document with current date
Example11
Loading editor…
View all documents in the 'personal' collection
Example12
Loading editor…
Finished this lesson?
Mark it as complete to track your progress and see technology completion stats.