As written in the documentation here: https://activeadmin.info/5-forms.html#datepicker you can use JQuery datepicker in you custom views. In your example I would use it like that:
form title: 'User details' do |f|
f.input :dob, as: :datepicker,
datepicker_options: { show_week: true, first_day: 1 ,
dateFormat: 'DD, dd-MM-yy',setDate: '0'}
end
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.