Answers for "2 days left format in laravel"

PHP
0

2 days left format in laravel

$end = Carbon::parse($request->input('end_date'));

$current = Carbon::now();
$length = $end->diffInDays($current);
dd($length);
Posted by: Guest on August-21-2021

Browse Popular Code Answers by Language