Answers for "Laravel change datetime format in controller"

PHP
-1

date format change in laravel blade

{{date_format($data->con_date_maintained,'D M Y')}}

{{ $data->con_wash_start_date == null ? date_format($data->con_date_maintained,'D M Y') : "-" }}
//$uj@y
Posted by: Guest on November-23-2020
0

laravel set date format

{{ $post->created_at->diffForHumans() }}
  /*
  	//Output
  Arya Stuck 14 minutes ago
  Post something 
  
  Mizan Khan 23 hours ago
  Post something
  */
Posted by: Guest on July-20-2021

Code answers related to "Laravel change datetime format in controller"

Browse Popular Code Answers by Language