Display Date form with calendar
static public showDateField ( $name, $options = [] ) : rand | ||
$name | name of the element | |
$options | array of possible options: - value : default value to display (default '') - maybeempty : may be empty ? (true by default) - canedit : could not modify element (true by default) - min : minimum allowed date (default '') - max : maximum allowed date (default '') - showyear : should we set/diplay the year? (true by default) - display : boolean display of return string (default true) - rand : specific rand value (default generated one) - yearrange : set a year range to show in drop-down (default '') | |
return | rand | value used if displayes else string |