Date
Reference group: BSON types and field properties
What it does
BSON Date stores a UTC-based millisecond timestamp.
Syntax
new Date() / ISODate(...)
Use case
Time filtering, sorting, and retention.
Date: practical example
ISODate("2026-05-01T12:00:00Z")💡 Explanation
BSON Date stores a UTC-based millisecond timestamp.
When to use it
Time filtering, sorting, and retention.
Key Takeaways
- BSON Date stores a UTC-based millisecond timestamp.
- Typical use: Time filtering, sorting, and retention.