title: Search for a date that has this number python
body: <p>I am working on a search box type of functionality in searching for an available date in a model from a DateField date in Django.</p>
  <p>Here are some sample dates, input, and desired output:</p>
  <p>Sample dates:</p>
  <pre><code>05/01/2022
  06/04/2021
  01/02/2023
  08/01/2022
  07/31/2025
  03/05/2022
  01/28/2021
  </code></pre>
  <p>Sample Input-Output:</p>
  <pre><code>Input: 3   Output: 01/02/2023, 07/31/2025,  03/05/2022
  Input: 31  Output: 07/31/2025
  Input: 8   Output: 08/01/2022, 01/28/2021
  Input: 6   Output: 06/04/2021
  </code></pre>
  <p>I hope the examples make it clear on what I have in mind. The purpose of this is to eliminate the use of a date picker and use a textbox instead. So if a user types in '3', all dates that have '3' in them will be the output and so on.</p>
  <p>This is strictly searching by numbers only, so it is clear that the user won't input any strings.
  Which means no 'February', 'Monday', and etc. inputs or outputs.</p>
  <p>Is this kind of functionality possible or should I scrap this and turn to a date picker and search in a date range instead?</p>
  <p>Currently, I'm thinking of the following ways to do this:</p>
  <ol>
  <li>Generate a minimum and a maximum date object (based from the table) that has the number input then do a range filter.</li>
  <li>Get all unique dates, convert them to strings, load them in a dataframe or list, then do the search from there.</li>
  </ol>
  <p>Any insights or suggestions for the implementation will be appreciated.</p>