Good day,
Im confuse on how can I perform a query on laravel's whereBetween function in evaluating only the Date part and disregarding the time part.
$startDate = '2015-04-31';
$endDate = '2015-05-01';
$totalDebit = DB::table('x_general_transactions_details')
->whereBetween('date_at', array($startDate,$endDate))
->where('account_xid',$account->xid)
->sum('debit');
the problem here is that all the transaction in '2015-05-01' is not being included because its time is not 00:00:00 that's why in order to get the transactions on '2015-05-01' i have to add one day to my $endDate variable.