Question : laravel time format
Answered by : ahmad-zaini-nijar
//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
Source : | Last Update : Tue, 21 Dec 21
Question : format date laravel timestamp view
Answered by : lennox-omondi
date('d-m-Y', strtotime($user->from_date));
/**
or
**/
date_format($user->from_date,'D M Y')
Source : https://stackoverflow.com/questions/40038521/change-the-date-format-in-laravel-view-page | Last Update : Tue, 10 Nov 20
Question : format time laravel
Answered by : lokesh-ramchandani
{{\Carbon\Carbon::createFromFormat('H:i:s',$time)->format('h:i')}}
{{$item->date_seance->format('d/m/Y') }}
{{date('H:i', strtotime($item->start_time)) }}
Source : | Last Update : Sat, 27 Feb 21
Question : format date laravel timestamp view
Answered by : lennox-omondi
date('d-m-Y', strtotime($user->from_date));
Source : https://stackoverflow.com/questions/40038521/change-the-date-format-in-laravel-view-page | Last Update : Tue, 10 Nov 20