Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

datediff in hour query builder laravel

DB::table('product')->whereRaw('DATEDIFF(exp_date,current_date) < 15')->get();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #datediff #hour #query #builder #laravel
ADD COMMENT
Topic
Name
2+6 =