How to fetch records from entity base on only Day and month?
Here we are doing a LIKE query as the question stated that it wants to fetch record on basis of current month and day only not a year .

 $query= \Drupal::entityQuery('user')
     -&gt;condition('field_dob','%'.date('m-d').'%', 'LIKE')
     -&gt;execute()