Answers for "php date format ti save in db by controller laravel"

PHP
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
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 "php date format ti save in db by controller laravel"

Browse Popular Code Answers by Language