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
Example document using multiple data types
Example of MongoDB Date Data Type (UTC Time)
Example of Central European Time
Example of Eastern Standard Time
Example using Local Time Zone
Example using new Date() for current time
Create a collection named 'personal'
Insert example document
Insert another document
Insert document with current date
View all documents in the 'personal' collection
Keep Going!MongoDB - JSON Schema Validation