Load the practice collection
Run once in mongosh against a development instance with an empty starts practice collection.
const lab = db.getSiblingDB("keplergrid_practice")
lab.starts.insertMany([
{ _id: "a-winter", startsAt: ISODate("2026-01-15T14:00:00Z") },
{ _id: "b-summer", startsAt: ISODate("2026-07-15T14:00:00Z") },
{ _id: "c-pending" }
])
In KeplerGrid, open keplergrid_practice.starts with a Read only connection.
Add a local display value
Run the pipeline in KeplerGrid Aggregation → JSON. The time zone name lets MongoDB apply New York’s seasonal offset for each date.
[
{ "$set": { "localStart": {
"$dateToString": {
"date": "$startsAt", "format": "%Y-%m-%d %H:%M %z",
"timezone": "America/New_York", "onNull": "Unscheduled"
}
} } },
{ "$sort": { "_id": 1 } }
]
The winter date displays 2026-01-15 09:00 -0500, the summer date 2026-07-15 10:00 -0400, and the missing date displays Unscheduled.
Keep chronological operations on the BSON Date
Use the original startsAt to filter or order by instant. Use localStart for display or a report column. If the original field stores timestamps as strings, convert them to BSON dates before formatting.
See how to group documents by calendar day or revisit the related KeplerGrid walkthrough.