【发布时间】:2017-06-19 08:09:47
【问题描述】:
如何将"2017-10-13T10:53:53.000Z" 这样的日期时间字符串作为 ISODate 插入 mongo db?
插入时,我在 mongodb 中得到一个字符串:
datetime.strptime("2017-10-13T10:53:53.000Z", "%Y-%m-%dT%H:%M:%S.000Z")
【问题讨论】:
-
您可以去there 寻找适合我的解决方案
-
对我有用的解决方案:on this other thread