October CMS resources and help articles

Simple and to the point. Optimized by the community.

Set the default value of a datepicker form widget to the current time

7
by OFFLINE, last modified on August 12th, 2019

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

Discussion

0 comments

We use cookies to measure the performance of this website. Do you want to accept these cookies?