$dt = Carbon::create(2012, 1, 31, 0); $future = Carbon::create(2012, 1, 31, 0); $future = $future->addMonth(); echo $dt->diffInDays($future); //31
$date1->toDateString() == $date2->toDateString()