BSON Date
BSON Date is BSON's 64-bit integer date type, storing milliseconds since the Unix epoch with a range of about ±290 million years.
Purpose
To store date-times compactly in 8 bytes in MongoDB, representing timezone-independent absolute points in time.
Mechanism
BSON type 9 (datetime): a 64-bit signed integer whose value is the milliseconds since 1970-01-01T00:00:00Z. A JavaScript Date maps to a BSON Date.
Use cases
- MongoDB date fields
- Time range queries
- Event timestamps