title: How to extract dates from input text for chatbot?
body: <p>I am building a chatbot in python. I need to extract dates from the input text from the user. Some test cases can be as follows:</p>
  
  <pre><code>1."last week of july"
  2." in june"
  3. "last month"
  4. "last n days"
  </code></pre>
  
  <p>These are just a sample. After extracting dates i need to build a query in sql. I have hot encoded for few cases. But when i think, more and more cases arise for which hot encoding might be time consuming. Is there any built in library which can ease my work ?</p>