ActionView::Helpers::DateHelper
select_datetime
API docs (Rails 8.1.4.1) ↗def select_datetime(datetime = Time.current, options = {}, html_options = {})
Description
Creates year, month, day, hour and minute <select> elements not bound to a model.
ERB
Changes from the previous output: Added Removed Changed
HTML
Preview
Interacting with the preview updates the form submission.
Form submission
Form data
| name | value |
|---|
Request body
Content-Type:
params