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
Example document using multiple data types
Example02
Example of MongoDB Date Data Type (UTC Time)
Example03
Example of Central European Time
Example04
Example of Eastern Standard Time
Example05
Example using Local Time Zone
Example06
Example using new Date() for current time
Example07
Create a collection named 'personal'
Example08
Insert example document
Example09
Insert another document
Example10
Insert document with current date
Example11
View all documents in the 'personal' collection
Example12