GDM/Framework/Types/Date.php
static function fromDate($date = false)
    {
        $format = count(explode(" ", $date)) > 1 ? Settings\DefaultDateSettings::$defaultDateTimeFromat : Settings\DefaultDateSettings::$defaultDateFromat;
        return ($date) ? static::createFromFormat($format, $date) : new self();
    }
static function fromDate($date = false)
    {
        $format = count(explode(" ", $date)) > 1 ? Settings\DefaultDateSettings::$defaultDateTimeFromat : Settings\DefaultDateSettings::$defaultDateFromat;
        return ($date) ? static::createFromFormat($format, $date) : new self();
    }
static function fromDate ( $ date = false ) { $ format = count ( explode ( " " , $ date ) ) > 1 ? Settings \ DefaultDateSettings :: $ defaultDateTimeFromat : Settings \ DefaultDateSettings :: $ defaultDateFromat ; return ( $ date ) ? static :: createFromFormat ( $ format , $ date ) : new self ( ) ; }
Create an instance from a short date or short date time formatted string

@param string $date <p>Date to create instance from</p>

@return Date
@see Settings\DefaultDateSettings
Create an instance from a short date or short date time formatted string