Connecting strapi to mongo db


i have no idea why time in my strapi are not stored to database = mongodb
they said i have to set date time in mongo db but i dont know how?

Seems that you are not converting your date into the right format.

You can try to convert your date by using moment:

moment(your_date).toDate();

where can I put this code? in my file? mixtapes.settings.json?

In the file where you get all this information from the screenshot.
Do you get this information from an API?


yeah from this one :

"playlist_from": {

      "type": "datetime"

    },

    "playlist_to": {

      "type": "datetime"

    },

what was wrong with my code?