- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
if (isset($args['filter']['birthdate'])) {
$birthdate = $args['filter']['birthdate'];
$filters['birthdate'] = [];
if (!empty($birthdate['to'])) {
$filters['birthdate']['$lte'] = $birthdate['to'];
}
if (!empty($birthdate['from'])) {
$filters['birthdate']['$gte'] = $birthdate['from'] + 86399;
}
}