public static function convertDate($sourceFormat, $targetFormat, $value) {
        $dateObject = date_create_from_format($sourceFormat, $value);
        if ($dateObject) {
            return $dateObject->format($targetFormat);
        } else {
            return null;
        }
    }