Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel date diff

$expDate = Carbon::now()->subDays(15));
Table::whereDate('exp_date', '<',$expDate); 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #date #diff
ADD COMMENT
Topic
Name
5+9 =