title: python datetime module and if statements
body: <p>I am beginner making a small project to calculate something. I need my program to use certain numbers depending on the date. I want the program to do something if the manufacturing date is between two dates. I want to know how to use the if statement with the datetime module? this is what i have so far:</p>
  
  <pre><code>import datetime
  ManufacturingDate = input('ManufacturingDate: ')
  ManufacturingDate = datetime.datetime.strptime(ManufacturingDate,"%d/%m/%Y")
  
  if (ManufacturingDate &gt;= datetime.date(1/1/2001) and ManufacturingDate &lt;= datetime.date(31/1/2008)):
      #do something
  </code></pre>