Answers for "laravel carbon database date"

PHP
0

laravel carbon today date format

$today = Carbon::now()->format('Y-m-d'); //yyyy-mm-dd etc
Posted by: Guest on November-16-2020
-1

Carbon fomart date

use Carbon/Carbon
Carbon::now()->format('Y-m-d H:i:s jS F Y'); // 2021-06-21 19:24:37 21st June 2021
Posted by: Guest on June-21-2021

Code answers related to "laravel carbon database date"

Browse Popular Code Answers by Language