formate date in laravel code example
Example 1: datetime format laravel
{{ $data->created_at->isoFormat('dddd D') }}
{!! date('d/M/y', strtotime($data->created_at)) !!}
Example 2: format date laravel timestamp view
date('d-m-Y', strtotime($user->from_date));
date_format($user->from_date,'D M Y')
Example 3: format time laravel
{{\Carbon\Carbon::createFromFormat('H:i:s',$time)->format('h:i')}}
{{$item->date_seance->format('d/m/Y') }}
{{date('H:i', strtotime($item->start_time)) }}
Example 4: format date laravel timestamp view
date('d-m-Y', strtotime($user->from_date));