format('Y-m-d')}{{else}}{$value}{{endif}}" data-preferredFormat="{{if $value instanceof \IPS\DateTime}}{$value->localeDate()}{{else}}{$value}{{endif}}"{{endif}}
{{if $required === TRUE}}aria-required='true'{{endif}}
{{if $min !== NULL}}min="{$min}"{{endif}}
{{if $max !== NULL}}max="{$max}"{{endif}}
{{if $disabled}}disabled aria-disabled='true'{{endif}}
class="{$class}"
data-control="date"
placeholder='{{if $placeholder !== NULL}}{$placeholder}{{else}}{expression="mb_strtoupper( str_replace( 'y', 'yy', \IPS\Member::loggedIn()->language()->preferredDateFormat() ) )"}{{endif}}'
>
{{if $time}}
{{endif}}
{{if $unlimited !== NULL and ( !$disabled or $unlimited === $value )}}
{lang="or"}
{{endif}}