I can't find anything that help query a mongodb server system date. It might be because there is far to much out there regarding querying using a date value to return documents focused around dates so my search doesn't coming up with enough relevance to bring me results.
how do I query the mongo service to have it return to me what it has for a its current system datetime USING Mongoose? Please understand, I'm NOT trying to query documents in a collection based on some date. I'm trying to get the system date from mongod and by using the mongoose middleware. If it can't be done by mongoose then how would you do it? Mongod does provide access to the system date https://docs.mongodb.com/manual/reference/method/Date/
via user5903880
No comments:
Post a Comment