Closed laukaichung closed 8 years ago
I see that you have also posted this question to StackOverflow with no response so far.
Since the question is more about Mongo/PHP than expose, SO is a better forum to request assistance. If I find something, I will respond there.
I want to change the datetime format to ISODate in MongoDB so that I can use MongoDB’s “time to live” or TTL collection feature.
I want to store the timestamp like this:
I have changed the class in Log/Mongo.php to use
new \MongoDate
But that doesn't convert the timestamp to ISODate but still store as an object:
Would you please tell me how to store the datetime field in ISODate format?