src/field/Field.php
public function setInitial($value)
    {
        if ($value instanceof DateTime) {
            $value = new DateTimeWrapper($value->format('c'));
        }

        $this->initial = $value;
        return $this;
    }
public function setInitial($value)
    {
        if ($value instanceof DateTime) {
            $value = new DateTimeWrapper($value->format('c'));
        }

        $this->initial = $value;
        return $this;
    }
public function setInitial ( $ value ) { if ( $ value instanceof DateTime ) { $ value = new DateTimeWrapper ( $ value -> format ( 'c' ) ) ; } $ this -> initial = $ value ; return $ this ; }
Sets the initial value to be displayed by the field.

@param string $value
@return FieldInterface
Sets the initial value to be displayed by the field .