Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get months and days with carbon diff

$time = Carbon::now()->diff($row->entry_date);
return '<td>' . $time->y . ' Year' . $time->m . ' Month' . $time->d . ' Day' . '</td>';
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #months #days #carbon #diff
ADD COMMENT
Topic
Name
5+2 =