protected function prepareValue($value)
    {
        $value = $this->asDateTime($value)->startOfDay();

        return $value->format($this->getDateFormat());
    }
protected function prepareValue($value)
    {
        $value = $this->asDateTime($value)->startOfDay();

        return $value->format($this->getDateFormat());
    }
protected function prepareValue ( $ value ) { $ value = $ this -> asDateTime ( $ value ) -> startOfDay ( ) ; return $ value -> format ( $ this -> getDateFormat ( ) ) ; }
Prepare the value to be stored.

@param mixed $value The value to prepare
@return string
Prepare the value to be stored .