ActionView::Helpers::DateHelper
time_tag
API docs (Rails 8.1.4.1) ↗def time_tag(date_or_time, content = nil, options = {}, &block)
Description
Creates a <time> element for a date or a date and time.
ERB
Changes from the previous output: Added Removed Changed
HTML
Preview
Form submission
Form data
| name | value |
|---|
Request body
Content-Type:
params