Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Carbon difference between two dates

$dt      = Carbon::create(2012, 1, 31, 0);
$future  = Carbon::create(2012, 1, 31, 0);

$future  = $future->addMonth();

echo $dt->diffInDays($future); //31
 
PREVIOUS NEXT
Tagged: #Carbon #difference #dates
ADD COMMENT
Topic
Name
6+1 =