Saving date as in date format in MongoDB

Hi all,

i want to save the date “yyyy-mm-dd” as Local date format in MongoDB.
advise the nodes to use.

Dear @Prasanna9078,
The JSON you give into MongoDB is passed directly to the MongoDB insertOne function. This then handles the document and interprets it. Can you try to represent your date in this format?

{"your_date_column": {"$date":"2015-11-11T08:45:03.974Z"}}

Kind regards,
Alexander

2 Likes