public static function convertDateVersion($version)
    {
        if (preg_match('/^\d{7,}\./', $version)) {
            $pos = strpos($version, '.');
            $version = substr($version, 0, $pos).self::convertDateMinorVersion(substr($version, $pos + 1));
        }

        return $version;
    }
public static function convertDateVersion($version)
    {
        if (preg_match('/^\d{7,}\./', $version)) {
            $pos = strpos($version, '.');
            $version = substr($version, 0, $pos).self::convertDateMinorVersion(substr($version, $pos + 1));
        }

        return $version;
    }
public static function convertDateVersion ( $ version ) { if ( preg_match ( '/^\d{7,}\./' , $ version ) ) { $ pos = strpos ( $ version , '.' ) ; $ version = substr ( $ version , 0 , $ pos ) . self :: convertDateMinorVersion ( substr ( $ version , $ pos + 1 ) ) ; } return $ version ; }
Converts the date or datetime version.

@param string $version The version

@return string
Converts the date or datetime version .