When using MongoDB\BSON\UTCDateTime to query be sure for instances of strtotime you are putting the constructor in milliseconds:$start = new MongoDB\BSON\UTCDateTime(strtotime("midnight") * 1000);$filter = ['date' => ['$gte' => $start]];$options = ['sort' => ['date' => -1]];$query = new MongoDB\Driver\Query($filter,$options);