Hi @Imran_Sheikh1,
MongoDB saves dates in UTC, so managing time zones should not be complicated if you work with dates.
That being said, looks like you are not saving Ticks
property as Number in the database. Can you double-check that? That can be the reason why your query does not work.
Use {_id: {$gte: NumberLong('638498107935187178')}}
in Compass
Basically the same reason as https://www.mongodb.com/community/forums/t/issue-with-int64-stored-in-the-field-id/277905/2?u=chris
Thank you for your reply.
When I enter a delivery date for January 27, 2024, mongodb stores the date January 26, 2024 23:00.
This is problematic if I want to have all deliveries on January 27, 2024.
Even if Ticks doesn’t have a quotation mark, isn’t it automatically a number?
I’ll try to store it correctly.
New & Unread Topics
Topic | Replies | Views | Activity |
---|---|---|---|
Question about size of data in mongo database | 1 | 760 | Apr 2024 |
please some one help me with mongodb community server installation on parrot os | 0 | 444 | Jun 2024 |
Mongodb Getting Core Dumped | 1 | 267 | Jun 2024 |
Using Variables on Compass Aggregation tool | 3 | 535 | Jul 2024 |
WhMongodb check bson site of collections | 5 | 348 | Aug 2024 |