Answers for "carbon get time form format string date"

PHP
5

carbon now format

use Carbon/Carbon
Carbon::now()->format('Y-m-d H:i:s');
Posted by: Guest on August-19-2020
0

laravel carbon 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 "carbon get time form format string date"

Browse Popular Code Answers by Language