/**
 * Magic method to render the date object in the format specified in the public
 * static member Date::$format.
 *
 * @return  string  The date as a formatted string.
 *
 * @since   1.7.0
 */
public function __toString()
{
    return (string) parent::format(self::$format);
}