date
The date function is used to extract the date part from a datetime expression. It takes a single parameter,
$parameter, which represents the original datetime expression.
Example Usage
use sbamtr\LaravelQueryEnrich\QE;
use function sbamtr\LaravelQueryEnrich\c;
$book = Book::select(
'id',
'name',
QE::date(c('published_at'))->as('published_date')
)->first();