Answers for "the format of date of timestamp in laravel"

PHP
1

format date laravel timestamp view

date('d-m-Y', strtotime($user->from_date));
/**
or
**/
date_format($user->from_date,'D M Y')
Posted by: Guest on November-03-2020
1

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)) }}
Posted by: Guest on February-20-2021

Code answers related to "the format of date of timestamp in laravel"

Browse Popular Code Answers by Language