From 8994cf3e261200c5b40ec4a42e81402e6eaa056d Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Fri, 17 Nov 2023 15:34:24 +0100 Subject: [PATCH] datetimepicker bs5 --- application/models/Csv_model.php | 8 ++------ application/views/csv/index.php | 28 +++++++++------------------- 2 files changed, 11 insertions(+), 25 deletions(-) diff --git a/application/models/Csv_model.php b/application/models/Csv_model.php index dce75104..6f22cd62 100644 --- a/application/models/Csv_model.php +++ b/application/models/Csv_model.php @@ -56,14 +56,10 @@ class Csv_model extends CI_Model // If date is set, we format the date and add it to the where-statement if ($fromdate != "") { - $from = DateTime::createFromFormat('d/m/Y', $fromdate); - $from = $from->format('Y-m-d'); - $sql .= " and date(COL_TIME_ON) >='" . $from . "'"; + $sql .= " and date(COL_TIME_ON) >='" . $fromdate . "'"; } if ($todate != "") { - $to = DateTime::createFromFormat('d/m/Y', $todate); - $to = $to->format('Y-m-d'); - $sql .= " and date(COL_TIME_ON) <='" . $to . "'"; + $sql .= " and date(COL_TIME_ON) <='" . $todate . "'"; } $sql .= ' and station_profile.user_id = ' . $this->session->userdata('user_id'); diff --git a/application/views/csv/index.php b/application/views/csv/index.php index a5e8ea53..c056c592 100644 --- a/application/views/csv/index.php +++ b/application/views/csv/index.php @@ -114,26 +114,16 @@
-
- -
- -
-
-
-
-
+
+ + +
-
- -
- -
-
-
-
-
-
+
+ + +
+