Answers for "how to separate date and time in laravel"

PHP
0

how to separate date and time in laravel

$datetime = "28-1-2011 14:32:55";
$date_arr= explode(" ", $datetime);
$date= $date_arr[0];
$time= $date_arr[1];
Posted by: Guest on October-25-2021
0

seprate day and year from laravel to timestamp

{{ $object->created_at->format('M') }}
Posted by: Guest on April-23-2021

Code answers related to "how to separate date and time in laravel"

Browse Popular Code Answers by Language