Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get recoed between two datetime laravel

$startDate = '2021-06-01';
$endDate = '2021-06-30';

Post::whereBetween(DB::raw('DATE(created_at)'), [$startDate, $endDate])->get();
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #recoed #datetime #laravel
ADD COMMENT
Topic
Name
6+9 =