maybe it’s too late to answer, but you need to create a lifecycles.js file in the /content-type/{collection_name}/ folder and add the following code for DateTime field:
module.exports = {
async beforeCreate(event) {
const {data} = event.params
data.your_date_field = new Date();
}
}
For date field use: new Date().toISOString().substring(0, 10);