Automatically set published date on publish event

Hi. I’m new to Strapi and I’m still digging through the documentation so sorry if I overlook something obvious.

I just want to know if it is possible to auto-populate the publishedAt field of an article when hitting the Publish button? The publishedAt is of type dateTime, and include a date picker. I think it makes sense to select a date when you want to schedule posts, but when you want to publish something straight away, it seems redundant to set a published date manually.




How to track the click event on the publish button when creating a plugin?