Answers for "know quantity of working days between two dates carbon laravel"

PHP
1

laravel carbon count days between dates

$diff = Carbon::parse( $start_date )->diffInDays( $end_date );
Posted by: Guest on December-15-2021
3

different days in carbon laravel between different dates

$created = new Carbon($survey->created_at);
$now = Carbon::now();
$difference = ($created->diff($now)->days < 1)
    ? 'today'
    : $created->diffForHumans($now);
Posted by: Guest on February-03-2021

Code answers related to "know quantity of working days between two dates carbon laravel"

Browse Popular Code Answers by Language