public static function modify($dateAsString, $interval, $format = self::DEFAULT_TIME_FORMAT)
    {
        $dateTime = new DateTime($dateAsString);
        return $dateTime->modify($interval)->format($format);
    }
public static function modify($dateAsString, $interval, $format = self::DEFAULT_TIME_FORMAT)
    {
        $dateTime = new DateTime($dateAsString);
        return $dateTime->modify($interval)->format($format);
    }
public static function modify ( $ dateAsString , $ interval , $ format = self :: DEFAULT_TIME_FORMAT ) { $ dateTime = new DateTime ( $ dateAsString ) ; return $ dateTime -> modify ( $ interval ) -> format ( $ format ) ; }
Modifies the given date string and returns a formatted date.

@link http://php.net/manual/en/datetime.formats.php

@param string $dateAsString
@param string $interval
@param string $format
@return string
Modifies the given date string and returns a formatted date .