Answers for "timestamp to create real time in laravel"

PHP
3

laravel current timestamp

use Carbon\Carbon;
$current_date_time = Carbon::now()->toDateTimeString(); // Produces something like "2019-03-11 12:25:00"
Posted by: Guest on March-03-2021
0

convert date to timestamp in laravel builder

$date = '2021-05-20';
date('Y-m-d H:i:s', strtotime($date));
Posted by: Guest on May-20-2021

Browse Popular Code Answers by Language