Tip - How to enable a date picker in the template

FYI there is date picker in the administrate section of the template. To add it to the rest of your app add something like this to your main application.js file (code copied from the administrate/components/date_time_picker.js file):
import 'administrate/components/date_time_picker' import flatpickr from 'flatpickr' function bindDatePicker() { [...document.querySelectorAll('[data-type="date"]')].forEach((time) => { flatpickr(time, { enableTime: false, altInput: true, altFormat: 'F j, Y', dateFormat: 'Y-m-d' // H:i }) }); }
Just a suggestion to

Notifications
You’re not receiving notifications from this thread.