From 5f54634529ee4223cbd8204d2428ddb8ee508086 Mon Sep 17 00:00:00 2001 From: Alina Marquardt Date: Tue, 22 Oct 2024 19:28:59 +0200 Subject: [PATCH] Add convert.php --- convert.php | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 convert.php diff --git a/convert.php b/convert.php new file mode 100644 index 0000000..cc8b26c --- /dev/null +++ b/convert.php @@ -0,0 +1,56 @@ += 0) { // date column has been found + $row = str_getcsv($row, $col_delimiter); // parse columns + $row[$date_col_index] = date("Y-m-d", strtotime($row[$date_col_index])); // modify date format + $row = implode($col_delimiter, $row); // combine colums + } + } + $row_counter++; +} +$data = implode($row_delimiter, $data); // combine rows + +echo $data \ No newline at end of file