src/Sulu/Bundle/PageBundle/Resources/phpcr-migrations/Version201511240843.php
private function upgradeDate(&$value)
    {
        if ($value instanceof \DateTime) {
            return $value;
        }

        $value = \DateTime::createFromFormat('Y-m-d', $value);

        return $value;
    }
private function upgradeDate(&$value)
    {
        if ($value instanceof \DateTime) {
            return $value;
        }

        $value = \DateTime::createFromFormat('Y-m-d', $value);

        return $value;
    }
private function upgradeDate ( & $ value ) { if ( $ value instanceof \ DateTime ) { return $ value ; } $ value = \ DateTime :: createFromFormat ( 'Y-m-d' , $ value ) ; return $ value ; }
Upgrades the given date to the new representation.

@param string $value The date to change

@return string
Upgrades the given date to the new representation .