public static function parseDate($date, $format){
        if( $format == "d/m/Y" ) return self::parseDate1($date, $format);
        if( $format == "Y-m-d" ) return self::parseDate2($date, $format);
        return null;
    }
public static function parseDate($date, $format){
        if( $format == "d/m/Y" ) return self::parseDate1($date, $format);
        if( $format == "Y-m-d" ) return self::parseDate2($date, $format);
        return null;
    }
public static function parseDate ( $ date , $ format ) { if ( $ format == "d/m/Y" ) return self :: parseDate1 ( $ date , $ format ) ; if ( $ format == "Y-m-d" ) return self :: parseDate2 ( $ date , $ format ) ; return null ; }
Helps for data manipulation
Helps for data manipulation