Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

minus day from carbon date

$day = '2019-10-30 18:29:19';
$date = Carbon::createFromFormat('Y-m-d H:i:s', $day);
$date->subDay(); // Subtracts 1 day
echo $date->format('Y-m-d h:i:s');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #day #carbon #date
ADD COMMENT
Topic
Name
8+8 =