carbon equal dates

152

carbon equal dates -

$date1 = Carbon::createFromFormat('m/d/Y H:i:s', '12/01/2020 10:20:00');
$date2 = Carbon::createFromFormat('m/d/Y H:i:s', '12/01/2020 10:20:00'); 
$result = $date1->eq($date2);

Comments

Submit
0 Comments