Answers for "how to convert dateformat in laravel blade"

PHP
5

laravel blade date format

//laravel method 1
{{ $data->created_at->isoFormat('dddd D') }}

//laravel method 2 
{!! date('d/M/y', strtotime($data->created_at)) !!}
Posted by: Guest on August-08-2020
0

blade format date

{!! htmlspecialchars_decode(date('j<\s\up>S</\s\up> F Y', strtotime('21-05-2020'))) !!}
Posted by: Guest on January-21-2021
0

Date Format Conversion in controller or Blade file

{{ \Carbon\Carbon::createFromTimestamp(strtotime($job->start_date))->format('d-m-Y')}}
Posted by: Guest on September-20-2021

Code answers related to "how to convert dateformat in laravel blade"

Browse Popular Code Answers by Language