<?php
// default and list items
$dateNow = new \DateTime('now');
$createdAtBeginDefault = new \DateTime($dateNow->format('Y-m-d') . ' 00:00:00');
$createdAtEndDefault = new \DateTime($dateNow->format('Y-m-d') . ' 23:59:59');
<?php
// default and list items
$dateNow = new \DateTime('now');
$createdAtBeginDefault = new \DateTime($dateNow->format('Y-m-d') . ' 00:00:00');
$createdAtEndDefault = new \DateTime($dateNow->format('Y-m-d') . ' 23:59:59');