title: Pandas: New Date Variable From Datetime Variable
body: <p>I have a large dataset with a datetime variable <code>"CHECKIN_DATE_TIME"</code> and would like to create a new variable that is just the date sans the time. The <code>"CHECKIN_DATE_TIME"</code> is formatted as such <code>2020-02-01 11:13:17.000</code>. I want the new variable to be formatted like <code>2020-02-01</code>. </p>
  
  <p>I'm referencing the following for help <a href="https://www.programiz.com/python-programming/datetime/strptime" rel="nofollow noreferrer">https://www.programiz.com/python-programming/datetime/strptime</a> but when I write my code, I'm getting attribute errors: <code>"Traceback(most recent call last)"</code> and <code>"DataFrame' object has no attribute 'strptime'"</code></p>
  
  <pre><code>import datetime
  NOTES_TAT=NOTES_TAT.strptime(CHECKIN_DATE_TIME,"%d %B, %Y")
  </code></pre>