src/Charcoal/Admin/Property/Input/DateTimePickerInput.php
public function defaultPickerOptions()
    {
        $date = null;

        if ($this->inputVal() !== '') {
            $date = new \DateTime($this->inputVal());
        }

        return [
            'format'      => self::DEFAULT_JS_FORMAT,
            'defaultDate' => $date ? $date->format(\DateTime::ISO8601) : null
        ];
    }
public function defaultPickerOptions()
    {
        $date = null;

        if ($this->inputVal() !== '') {
            $date = new \DateTime($this->inputVal());
        }

        return [
            'format'      => self::DEFAULT_JS_FORMAT,
            'defaultDate' => $date ? $date->format(\DateTime::ISO8601) : null
        ];
    }
public function defaultPickerOptions ( ) { $ date = null ; if ( $ this -> inputVal ( ) !== '' ) { $ date = new \ DateTime ( $ this -> inputVal ( ) ) ; } return [ 'format' => self :: DEFAULT_JS_FORMAT , 'defaultDate' => $ date ? $ date -> format ( \ DateTime :: ISO8601 ) : null ] ; }
Retrieve the default color picker options.

@return array
Retrieve the default color picker options .