public function dateConversion(string $date, string $format = 'Y-m-d'): string
    {
        return date($format, strtotime($date));
    }
public function dateConversion(string $date, string $format = 'Y-m-d'): string
    {
        return date($format, strtotime($date));
    }
public function dateConversion ( string $ date , string $ format = 'Y-m-d' ) : string { return date ( $ format , strtotime ( $ date ) ) ; }
Converts a date into another format

@param string $date
@param string $format

@return string
Converts a date into another format