Is it possible to have todays date as the default value for a datetime field?

Hey, I’m having trouble finding any documentation on what I can enter for the default value on a datetime field. Is it possible to have it populate with today’s date on creation?

For posterity, here’s the answer I received from Hannes in the website chat:

at the moment this isn’t possible with the time field. It would be possible to use a preset and set a default date/time value but this would be always the same.

An option would be to create a custom field type for that: https://www.storyblok.com/docs/plugins/field-type

I also added a feature request to our feedback page: https://feedback.storyblok.com/b/feature-requests/add-the-possibility-to-set-that-the-date-time-field-adds-the-actual-date-time-as-value-automatically

Thanks Hannes :slight_smile:

1 Like