Skip to main content

SplitHiddenDateTimeWidget

A widget that splits datetime input into two < input type="hidden" > inputs.

Attributes

AttributeTypeDescription
template_namestring = django/forms/widgets/splithiddendatetime.htmlThe path to the HTML template used to render the hidden date and time input fields.

Constructor

Signature

def SplitHiddenDateTimeWidget(
attrs: dict = None,
date_format: str = None,
time_format: str = None,
date_attrs: dict = None,
time_attrs: dict = None
) - > null

Parameters

NameTypeDescription
attrsdict = NoneA dictionary of HTML attributes to be added to the rendered widget.
date_formatstr = NoneThe format in which the date portion should be displayed.
time_formatstr = NoneThe format in which the time portion should be displayed.
date_attrsdict = NoneAdditional HTML attributes for the date widget.
time_attrsdict = NoneAdditional HTML attributes for the time widget.

Signature

def SplitHiddenDateTimeWidget(
attrs: dict = None,
date_format: str = None,
time_format: str = None,
date_attrs: dict = None,
time_attrs: dict = None
) - > null

Parameters

NameTypeDescription
attrsdict = NoneA dictionary of HTML attributes to be applied to the rendered widget elements
date_formatstr = NoneThe format string used to render the date portion of the datetime value
time_formatstr = NoneThe format string used to render the time portion of the datetime value
date_attrsdict = NoneSpecific HTML attributes to apply only to the date input widget
time_attrsdict = NoneSpecific HTML attributes to apply only to the time input widget