Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

carbon subtract two dates

$date = Carbon::parse('2016-09-17 11:00:00');
$now = Carbon::now();

$diff = $date->diffInDays($now);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #carbon #subtract #dates
ADD COMMENT
Topic
Name
7+9 =