+ public function createElementInputDateTime($name, $id = null, $min = null, $max = null, $value = null) {
+ $dtfield = $this->createElement('input');
+ $dtfield->setAttribute('type', 'datetime-local');
+ if (!is_null($id)) { $dtfield->setAttribute('id', $id); }
+ $dtfield->setAttribute('name', $name);
+ if (!is_null($min)) { $dtfield->setAttribute('min', $min); }
+ if (!is_null($max)) { $dtfield->setAttribute('max', $max); }
+ if (!is_null($value)) { $dtfield->setAttribute('value', str_replace(' ', 'T', $value, 1)); }
+ return $dtfield;
+ }
+