how to use date format 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 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 3: blade format date
{!! htmlspecialchars_decode(date('j<\s\up>S</\s\up> F Y', strtotime('21-05-2020'))) !!}
Example 4: laravel date format valdiate
'date_format:d/m/Y';