src/Components/Schema.php
public static function getConfigDateTimeFormat($type)
    {
        switch (strtolower(strval($type))) {
            case DbSimpleTypes::TYPE_TIME:
            case DbSimpleTypes::TYPE_TIME_TZ:
                return \Config::get('df.db.time_format');

            case DbSimpleTypes::TYPE_DATE:
                return \Config::get('df.db.date_format');

            case DbSimpleTypes::TYPE_DATETIME:
            case DbSimpleTypes::TYPE_DATETIME_TZ:
                return \Config::get('df.db.datetime_format');

            case DbSimpleTypes::TYPE_TIMESTAMP:
            case DbSimpleTypes::TYPE_TIMESTAMP_TZ:
            case DbSimpleTypes::TYPE_TIMESTAMP_ON_CREATE:
            case DbSimpleTypes::TYPE_TIMESTAMP_ON_UPDATE:
                return \Config::get('df.db.timestamp_format');
        }

        return null;
    }
public static function getConfigDateTimeFormat($type)
    {
        switch (strtolower(strval($type))) {
            case DbSimpleTypes::TYPE_TIME:
            case DbSimpleTypes::TYPE_TIME_TZ:
                return \Config::get('df.db.time_format');

            case DbSimpleTypes::TYPE_DATE:
                return \Config::get('df.db.date_format');

            case DbSimpleTypes::TYPE_DATETIME:
            case DbSimpleTypes::TYPE_DATETIME_TZ:
                return \Config::get('df.db.datetime_format');

            case DbSimpleTypes::TYPE_TIMESTAMP:
            case DbSimpleTypes::TYPE_TIMESTAMP_TZ:
            case DbSimpleTypes::TYPE_TIMESTAMP_ON_CREATE:
            case DbSimpleTypes::TYPE_TIMESTAMP_ON_UPDATE:
                return \Config::get('df.db.timestamp_format');
        }

        return null;
    }
@param $type

@return mixed|null