Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
MongoSkin を介して Mongodb にタイムスタンプを挿入することに関する投稿はいくつかありますが、戻り側には何もありません (ObjectID から日付を取得する以外)。
findOne (MongoDate フィールドを含む) を実行した後、console-log はデータ フィールドを ISO 日付として読み取りますが、->sec / タイムスタンプをプルする内部関数があります。
答えは次のとおりです。new Date( response.Date ).getTime()
new Date( response.Date ).getTime()