src/Concerns/Input.php
public function datetime(string $name, $value = null, array $options = []): Htmlable
    {
        if ($value instanceof DateTime) {
            $value = $value->format(DateTime::RFC3339);
        }

        return $this->input('datetime', $name, $value, $options);
    }
public function datetime(string $name, $value = null, array $options = []): Htmlable
    {
        if ($value instanceof DateTime) {
            $value = $value->format(DateTime::RFC3339);
        }

        return $this->input('datetime', $name, $value, $options);
    }
Create a datetime input field.

@param  string $name
@param  \DateTime|string|null  $value
@param  array  $options

@return \Illuminate\Contracts\Support\Htmlable