method

datetime_local_field_tag

datetime_local_field_tag(name, value = nil, options = {})
public

Creates a text field of type “datetime-local”.

Options

  • :min - The minimum acceptable value.

  • :max - The maximum acceptable value.

  • :step - The acceptable value granularity.

  • Otherwise accepts the same options as text_field_tag.