title: How to call python function which has arguments in date format?
body: <p>So, I have the function below, and the problem is that when I call the function I get the error saying <code>ValueError: could not convert string to Timestamp</code> (unfortunately, pc wouldn't allow me copy the full error message though, because pc at work is just built that way :(  ). Anyway, here's my code:</p>
  
  <pre><code>def ao_year(start, end):
      ##This fucntion selects all columns and rows, between two selected 
      ##dates from 'event_start_date_time' column
      return ao_paths_2009.loc[(ao_paths_2009['event_start_date_time'] &gt;= 
           '{}') &amp; (ao_paths_2009['event_start_date_time'] &lt;= '{}')]
  
  #Calling the function
  ao_year_2009 = ao_year('2009-01-01', '2009-12-31')
  print(ao_year_2009.info())
  </code></pre>
  
  <p>I've already tried  <code>.strftime('%d/%m%)Y'</code> without success.</p>