### Attributes:
- monthNames If false, 2 digit numbers will be used instead of text.
If a array, the given array will be used.
- minYear The lowest year to use in the year select
- maxYear The maximum year to use in the year select
- interval The interval for the minutes select. Defaults to 1
- separator The contents of the string between select elements. Defaults to '-'
- empty - If true, the empty select option is shown. If a string,
that string is displayed as the empty element.
- round - Set to up or down if you want to force rounding in either direction. Defaults to null.
- value | default The default value to be used by the input. A value in $this->data
matching the field name will override this value. If no default is provided time() will be used.
public dateTime ( string $fieldName, string $dateFormat = 'DMY', string $timeFormat = '12', array $attributes = [] ) : string | ||
$fieldName | string | Prefix name for the SELECT element |
$dateFormat | string | DMY, MDY, YMD, or null to not generate date inputs. - W が入力された場合、和暦のselectと年月日の接尾辞が付与される |
$timeFormat | string | 12, 24, or null to not generate time inputs. |
$attributes | array | Array of Attributes |
return | string | Generated set of select boxes for the date and time formats chosen. |