What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-02-19 13:50:04
laravel datatable format date column
$projects = Project::select('id', 'name', 'date_start', 'date_end'); return Datatables::of($projects) ->editColumn('date_start', function ($request) { return $request->date_start->format('Y-m-d'); // human readable format }) ->editCo... Add solution -
Other 2021-11-11 14:14:13
get all the between dates from start and end date carbon
$period = CarbonPeriod::create('2018-06-14', '2018-06-20'); // Iterate over the period foreach ($period as $date) { echo $date->format('Y-m-d'); } // Convert the period to an array of dates $dates = $period->toArray(); Add solution -
PHP 2021-11-08 21:36:08
remove time from date php
$date = '2012-09-09 03:09:00'; $createDate = new DateTime($date); $strip = $createDate->format('Y-m-d'); var_dump($strip); // string(10) "2012-09-09" $now = new DateTime(); $difference = $now->diff($createDate, true); var_dump($differen... Add solution -
PHP 2021-09-09 11:57:01
ajax php crud example
<?php // Check if the form is submitted $personName = $_POST['personName']; $address = $_POST['address']; $mobile = $_POST['mobile']; $email = $_POST['email']; $message = $_POST['message']; $tdate=new DateTime(); // form a sql query $sql = "INSERT... Add solution
Best helpers
Wayno
+5
IQAndreas
+5
AlecPerkey
+5
Seria Yin
+5
T-rex
+5
Wilber82
+5
Sharma Pocso
+5
TJG
+5
JSanchez
+5