title: How do i input a date as int with datetime.datetime()?
body: <p>I want to pass user input to a DB query as a datetime object and thought this might work but I get an error:</p>
  <pre><code>    start_date = &quot;2022-07-29&quot; #this is the user input
      start = datetime.datetime(start_date) 
      
  </code></pre>
  <p>Do I really have to split the string etc. to make it work?</p>