Answers for "carbon 2 digit day"

PHP
1

carbon 2 days ago

$users = Users::where('status_id', 'active')
           ->where( 'created_at', '>', Carbon::now()->subDays(30))
           ->get();
Posted by: Guest on November-08-2021
1

carbon two day ago

$dt  =Carbon::now();

echo $dt->subDay();                      // 2012-03-03 00:00:00
echo $dt->subDays(29);
Posted by: Guest on February-02-2021

Browse Popular Code Answers by Language