Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel time format

//before
$data->created_at; // 2021-12-14 00:00:00

//after
$data->created_at->format('Y-m-d'); //2021-12-14
$data->created_at->format('H:i:s'); //00:00:00
 
PREVIOUS NEXT
Tagged: #laravel #time #format
ADD COMMENT
Topic
Name
5+8 =