Set the default value of a datepicker form widget to the current time
7
If you've got a datepicker
form widget and want to preset it to the current date and time simply pass now
as value to the default
property.
published_at:
label: 'Published at'
mode: datetime
type: datepicker
default: now
There are no comments yet
Be the first one to comment